@azure/arm-eventgrid 14.2.0-alpha.20250620.1 → 14.2.0-alpha.20250722.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/eventGridManagementClient.js +42 -5
- package/dist/browser/eventGridManagementClient.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 +700 -312
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/caCertificates.js +45 -52
- package/dist/browser/operations/caCertificates.js.map +1 -1
- package/dist/browser/operations/channels.js +34 -46
- package/dist/browser/operations/channels.js.map +1 -1
- package/dist/browser/operations/clientGroups.js +45 -52
- package/dist/browser/operations/clientGroups.js.map +1 -1
- package/dist/browser/operations/clients.js +45 -52
- package/dist/browser/operations/clients.js.map +1 -1
- package/dist/browser/operations/domainEventSubscriptions.js +56 -58
- package/dist/browser/operations/domainEventSubscriptions.js.map +1 -1
- package/dist/browser/operations/domainTopicEventSubscriptions.js +56 -58
- package/dist/browser/operations/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/browser/operations/domainTopics.js +45 -52
- package/dist/browser/operations/domainTopics.js.map +1 -1
- package/dist/browser/operations/domains.js +78 -97
- package/dist/browser/operations/domains.js.map +1 -1
- package/dist/browser/operations/eventSubscriptions.js +254 -409
- package/dist/browser/operations/eventSubscriptions.js.map +1 -1
- package/dist/browser/operations/extensionTopics.js +1 -0
- package/dist/browser/operations/extensionTopics.js.map +1 -1
- package/dist/browser/operations/namespaceTopicEventSubscriptions.js +56 -58
- package/dist/browser/operations/namespaceTopicEventSubscriptions.js.map +1 -1
- package/dist/browser/operations/namespaceTopics.js +67 -64
- package/dist/browser/operations/namespaceTopics.js.map +1 -1
- package/dist/browser/operations/namespaces.js +100 -109
- package/dist/browser/operations/namespaces.js.map +1 -1
- package/dist/browser/operations/operations.js +10 -27
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/partnerConfigurations.js +65 -84
- package/dist/browser/operations/partnerConfigurations.js.map +1 -1
- package/dist/browser/operations/partnerNamespaces.js +78 -97
- package/dist/browser/operations/partnerNamespaces.js.map +1 -1
- package/dist/browser/operations/partnerRegistrations.js +78 -97
- package/dist/browser/operations/partnerRegistrations.js.map +1 -1
- package/dist/browser/operations/partnerTopicEventSubscriptions.js +56 -58
- package/dist/browser/operations/partnerTopicEventSubscriptions.js.map +1 -1
- package/dist/browser/operations/partnerTopics.js +56 -85
- package/dist/browser/operations/partnerTopics.js.map +1 -1
- package/dist/browser/operations/permissionBindings.js +45 -52
- package/dist/browser/operations/permissionBindings.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +45 -52
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +23 -40
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/systemTopicEventSubscriptions.js +56 -58
- package/dist/browser/operations/systemTopicEventSubscriptions.js.map +1 -1
- package/dist/browser/operations/systemTopics.js +78 -97
- package/dist/browser/operations/systemTopics.js.map +1 -1
- package/dist/browser/operations/topicEventSubscriptions.js +56 -58
- package/dist/browser/operations/topicEventSubscriptions.js.map +1 -1
- package/dist/browser/operations/topicSpaces.js +45 -52
- package/dist/browser/operations/topicSpaces.js.map +1 -1
- package/dist/browser/operations/topicTypes.js +19 -53
- package/dist/browser/operations/topicTypes.js.map +1 -1
- package/dist/browser/operations/topics.js +98 -129
- package/dist/browser/operations/topics.js.map +1 -1
- package/dist/browser/operations/verifiedPartners.js +23 -40
- package/dist/browser/operations/verifiedPartners.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/eventGridManagementClient.js +42 -5
- package/dist/commonjs/eventGridManagementClient.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 +700 -312
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/caCertificates.js +45 -51
- package/dist/commonjs/operations/caCertificates.js.map +1 -1
- package/dist/commonjs/operations/channels.js +34 -45
- package/dist/commonjs/operations/channels.js.map +1 -1
- package/dist/commonjs/operations/clientGroups.js +45 -51
- package/dist/commonjs/operations/clientGroups.js.map +1 -1
- package/dist/commonjs/operations/clients.js +45 -51
- package/dist/commonjs/operations/clients.js.map +1 -1
- package/dist/commonjs/operations/domainEventSubscriptions.js +56 -57
- package/dist/commonjs/operations/domainEventSubscriptions.js.map +1 -1
- package/dist/commonjs/operations/domainTopicEventSubscriptions.js +56 -57
- package/dist/commonjs/operations/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/commonjs/operations/domainTopics.js +45 -51
- package/dist/commonjs/operations/domainTopics.js.map +1 -1
- package/dist/commonjs/operations/domains.js +78 -96
- package/dist/commonjs/operations/domains.js.map +1 -1
- package/dist/commonjs/operations/eventSubscriptions.js +254 -408
- package/dist/commonjs/operations/eventSubscriptions.js.map +1 -1
- package/dist/commonjs/operations/extensionTopics.js +1 -0
- package/dist/commonjs/operations/extensionTopics.js.map +1 -1
- package/dist/commonjs/operations/namespaceTopicEventSubscriptions.js +56 -57
- package/dist/commonjs/operations/namespaceTopicEventSubscriptions.js.map +1 -1
- package/dist/commonjs/operations/namespaceTopics.js +67 -63
- package/dist/commonjs/operations/namespaceTopics.js.map +1 -1
- package/dist/commonjs/operations/namespaces.js +100 -108
- package/dist/commonjs/operations/namespaces.js.map +1 -1
- package/dist/commonjs/operations/operations.js +10 -26
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/partnerConfigurations.js +65 -83
- package/dist/commonjs/operations/partnerConfigurations.js.map +1 -1
- package/dist/commonjs/operations/partnerNamespaces.js +78 -96
- package/dist/commonjs/operations/partnerNamespaces.js.map +1 -1
- package/dist/commonjs/operations/partnerRegistrations.js +78 -96
- package/dist/commonjs/operations/partnerRegistrations.js.map +1 -1
- package/dist/commonjs/operations/partnerTopicEventSubscriptions.js +56 -57
- package/dist/commonjs/operations/partnerTopicEventSubscriptions.js.map +1 -1
- package/dist/commonjs/operations/partnerTopics.js +56 -84
- package/dist/commonjs/operations/partnerTopics.js.map +1 -1
- package/dist/commonjs/operations/permissionBindings.js +45 -51
- package/dist/commonjs/operations/permissionBindings.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +45 -51
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +23 -39
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/systemTopicEventSubscriptions.js +56 -57
- package/dist/commonjs/operations/systemTopicEventSubscriptions.js.map +1 -1
- package/dist/commonjs/operations/systemTopics.js +78 -96
- package/dist/commonjs/operations/systemTopics.js.map +1 -1
- package/dist/commonjs/operations/topicEventSubscriptions.js +56 -57
- package/dist/commonjs/operations/topicEventSubscriptions.js.map +1 -1
- package/dist/commonjs/operations/topicSpaces.js +45 -51
- package/dist/commonjs/operations/topicSpaces.js.map +1 -1
- package/dist/commonjs/operations/topicTypes.js +19 -52
- package/dist/commonjs/operations/topicTypes.js.map +1 -1
- package/dist/commonjs/operations/topics.js +98 -128
- package/dist/commonjs/operations/topics.js.map +1 -1
- package/dist/commonjs/operations/verifiedPartners.js +23 -39
- package/dist/commonjs/operations/verifiedPartners.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/eventGridManagementClient.js +42 -5
- package/dist/esm/eventGridManagementClient.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 +700 -312
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/caCertificates.js +45 -52
- package/dist/esm/operations/caCertificates.js.map +1 -1
- package/dist/esm/operations/channels.js +34 -46
- package/dist/esm/operations/channels.js.map +1 -1
- package/dist/esm/operations/clientGroups.js +45 -52
- package/dist/esm/operations/clientGroups.js.map +1 -1
- package/dist/esm/operations/clients.js +45 -52
- package/dist/esm/operations/clients.js.map +1 -1
- package/dist/esm/operations/domainEventSubscriptions.js +56 -58
- package/dist/esm/operations/domainEventSubscriptions.js.map +1 -1
- package/dist/esm/operations/domainTopicEventSubscriptions.js +56 -58
- package/dist/esm/operations/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/esm/operations/domainTopics.js +45 -52
- package/dist/esm/operations/domainTopics.js.map +1 -1
- package/dist/esm/operations/domains.js +78 -97
- package/dist/esm/operations/domains.js.map +1 -1
- package/dist/esm/operations/eventSubscriptions.js +254 -409
- package/dist/esm/operations/eventSubscriptions.js.map +1 -1
- package/dist/esm/operations/extensionTopics.js +1 -0
- package/dist/esm/operations/extensionTopics.js.map +1 -1
- package/dist/esm/operations/namespaceTopicEventSubscriptions.js +56 -58
- package/dist/esm/operations/namespaceTopicEventSubscriptions.js.map +1 -1
- package/dist/esm/operations/namespaceTopics.js +67 -64
- package/dist/esm/operations/namespaceTopics.js.map +1 -1
- package/dist/esm/operations/namespaces.js +100 -109
- package/dist/esm/operations/namespaces.js.map +1 -1
- package/dist/esm/operations/operations.js +10 -27
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/partnerConfigurations.js +65 -84
- package/dist/esm/operations/partnerConfigurations.js.map +1 -1
- package/dist/esm/operations/partnerNamespaces.js +78 -97
- package/dist/esm/operations/partnerNamespaces.js.map +1 -1
- package/dist/esm/operations/partnerRegistrations.js +78 -97
- package/dist/esm/operations/partnerRegistrations.js.map +1 -1
- package/dist/esm/operations/partnerTopicEventSubscriptions.js +56 -58
- package/dist/esm/operations/partnerTopicEventSubscriptions.js.map +1 -1
- package/dist/esm/operations/partnerTopics.js +56 -85
- package/dist/esm/operations/partnerTopics.js.map +1 -1
- package/dist/esm/operations/permissionBindings.js +45 -52
- package/dist/esm/operations/permissionBindings.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js +45 -52
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +23 -40
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/systemTopicEventSubscriptions.js +56 -58
- package/dist/esm/operations/systemTopicEventSubscriptions.js.map +1 -1
- package/dist/esm/operations/systemTopics.js +78 -97
- package/dist/esm/operations/systemTopics.js.map +1 -1
- package/dist/esm/operations/topicEventSubscriptions.js +56 -58
- package/dist/esm/operations/topicEventSubscriptions.js.map +1 -1
- package/dist/esm/operations/topicSpaces.js +45 -52
- package/dist/esm/operations/topicSpaces.js.map +1 -1
- package/dist/esm/operations/topicTypes.js +19 -53
- package/dist/esm/operations/topicTypes.js.map +1 -1
- package/dist/esm/operations/topics.js +98 -129
- package/dist/esm/operations/topics.js.map +1 -1
- package/dist/esm/operations/verifiedPartners.js +23 -40
- package/dist/esm/operations/verifiedPartners.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/eventGridManagementClient.js +42 -5
- package/dist/react-native/eventGridManagementClient.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 +700 -312
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/caCertificates.js +45 -52
- package/dist/react-native/operations/caCertificates.js.map +1 -1
- package/dist/react-native/operations/channels.js +34 -46
- package/dist/react-native/operations/channels.js.map +1 -1
- package/dist/react-native/operations/clientGroups.js +45 -52
- package/dist/react-native/operations/clientGroups.js.map +1 -1
- package/dist/react-native/operations/clients.js +45 -52
- package/dist/react-native/operations/clients.js.map +1 -1
- package/dist/react-native/operations/domainEventSubscriptions.js +56 -58
- package/dist/react-native/operations/domainEventSubscriptions.js.map +1 -1
- package/dist/react-native/operations/domainTopicEventSubscriptions.js +56 -58
- package/dist/react-native/operations/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/react-native/operations/domainTopics.js +45 -52
- package/dist/react-native/operations/domainTopics.js.map +1 -1
- package/dist/react-native/operations/domains.js +78 -97
- package/dist/react-native/operations/domains.js.map +1 -1
- package/dist/react-native/operations/eventSubscriptions.js +254 -409
- package/dist/react-native/operations/eventSubscriptions.js.map +1 -1
- package/dist/react-native/operations/extensionTopics.js +1 -0
- package/dist/react-native/operations/extensionTopics.js.map +1 -1
- package/dist/react-native/operations/namespaceTopicEventSubscriptions.js +56 -58
- package/dist/react-native/operations/namespaceTopicEventSubscriptions.js.map +1 -1
- package/dist/react-native/operations/namespaceTopics.js +67 -64
- package/dist/react-native/operations/namespaceTopics.js.map +1 -1
- package/dist/react-native/operations/namespaces.js +100 -109
- package/dist/react-native/operations/namespaces.js.map +1 -1
- package/dist/react-native/operations/operations.js +10 -27
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/partnerConfigurations.js +65 -84
- package/dist/react-native/operations/partnerConfigurations.js.map +1 -1
- package/dist/react-native/operations/partnerNamespaces.js +78 -97
- package/dist/react-native/operations/partnerNamespaces.js.map +1 -1
- package/dist/react-native/operations/partnerRegistrations.js +78 -97
- package/dist/react-native/operations/partnerRegistrations.js.map +1 -1
- package/dist/react-native/operations/partnerTopicEventSubscriptions.js +56 -58
- package/dist/react-native/operations/partnerTopicEventSubscriptions.js.map +1 -1
- package/dist/react-native/operations/partnerTopics.js +56 -85
- package/dist/react-native/operations/partnerTopics.js.map +1 -1
- package/dist/react-native/operations/permissionBindings.js +45 -52
- package/dist/react-native/operations/permissionBindings.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js +45 -52
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +23 -40
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/systemTopicEventSubscriptions.js +56 -58
- package/dist/react-native/operations/systemTopicEventSubscriptions.js.map +1 -1
- package/dist/react-native/operations/systemTopics.js +78 -97
- package/dist/react-native/operations/systemTopics.js.map +1 -1
- package/dist/react-native/operations/topicEventSubscriptions.js +56 -58
- package/dist/react-native/operations/topicEventSubscriptions.js.map +1 -1
- package/dist/react-native/operations/topicSpaces.js +45 -52
- package/dist/react-native/operations/topicSpaces.js.map +1 -1
- package/dist/react-native/operations/topicTypes.js +19 -53
- package/dist/react-native/operations/topicTypes.js.map +1 -1
- package/dist/react-native/operations/topics.js +98 -129
- package/dist/react-native/operations/topics.js.map +1 -1
- package/dist/react-native/operations/verifiedPartners.js +23 -40
- package/dist/react-native/operations/verifiedPartners.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-eventgrid.api.md → arm-eventgrid-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";
|
|
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing EventSubscriptions operations. */
|
|
17
16
|
export class EventSubscriptionsImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class EventSubscriptions class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -36,52 +36,35 @@ export class EventSubscriptionsImpl {
|
|
|
36
36
|
return this;
|
|
37
37
|
},
|
|
38
38
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
39
|
+
if (settings?.maxPageSize) {
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.listGlobalBySubscriptionPagingPage(options, settings);
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
listGlobalBySubscriptionPagingPage(options, settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
});
|
|
46
|
+
async *listGlobalBySubscriptionPagingPage(options, settings) {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings?.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = await this._listGlobalBySubscription(options);
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield page;
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = await this._listGlobalBySubscriptionNext(continuationToken, options);
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
65
63
|
}
|
|
66
|
-
listGlobalBySubscriptionPagingAll(options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
for (var _d = true, _e = __asyncValues(this.listGlobalBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
-
_c = _f.value;
|
|
72
|
-
_d = false;
|
|
73
|
-
const page = _c;
|
|
74
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
-
finally {
|
|
79
|
-
try {
|
|
80
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
-
}
|
|
82
|
-
finally { if (e_1) throw e_1.error; }
|
|
83
|
-
}
|
|
84
|
-
});
|
|
64
|
+
async *listGlobalBySubscriptionPagingAll(options) {
|
|
65
|
+
for await (const page of this.listGlobalBySubscriptionPagingPage(options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
/**
|
|
87
70
|
* List all global event subscriptions under an Azure subscription for a topic type.
|
|
@@ -98,52 +81,35 @@ export class EventSubscriptionsImpl {
|
|
|
98
81
|
return this;
|
|
99
82
|
},
|
|
100
83
|
byPage: (settings) => {
|
|
101
|
-
if (settings
|
|
84
|
+
if (settings?.maxPageSize) {
|
|
102
85
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
103
86
|
}
|
|
104
87
|
return this.listGlobalBySubscriptionForTopicTypePagingPage(topicTypeName, options, settings);
|
|
105
88
|
},
|
|
106
89
|
};
|
|
107
90
|
}
|
|
108
|
-
listGlobalBySubscriptionForTopicTypePagingPage(topicTypeName, options, settings) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
});
|
|
91
|
+
async *listGlobalBySubscriptionForTopicTypePagingPage(topicTypeName, options, settings) {
|
|
92
|
+
let result;
|
|
93
|
+
let continuationToken = settings?.continuationToken;
|
|
94
|
+
if (!continuationToken) {
|
|
95
|
+
result = await this._listGlobalBySubscriptionForTopicType(topicTypeName, options);
|
|
96
|
+
let page = result.value || [];
|
|
97
|
+
continuationToken = result.nextLink;
|
|
98
|
+
setContinuationToken(page, continuationToken);
|
|
99
|
+
yield page;
|
|
100
|
+
}
|
|
101
|
+
while (continuationToken) {
|
|
102
|
+
result = await this._listGlobalBySubscriptionForTopicTypeNext(topicTypeName, continuationToken, options);
|
|
103
|
+
continuationToken = result.nextLink;
|
|
104
|
+
let page = result.value || [];
|
|
105
|
+
setContinuationToken(page, continuationToken);
|
|
106
|
+
yield page;
|
|
107
|
+
}
|
|
127
108
|
}
|
|
128
|
-
listGlobalBySubscriptionForTopicTypePagingAll(topicTypeName, options) {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
for (var _d = true, _e = __asyncValues(this.listGlobalBySubscriptionForTopicTypePagingPage(topicTypeName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
133
|
-
_c = _f.value;
|
|
134
|
-
_d = false;
|
|
135
|
-
const page = _c;
|
|
136
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
140
|
-
finally {
|
|
141
|
-
try {
|
|
142
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
143
|
-
}
|
|
144
|
-
finally { if (e_2) throw e_2.error; }
|
|
145
|
-
}
|
|
146
|
-
});
|
|
109
|
+
async *listGlobalBySubscriptionForTopicTypePagingAll(topicTypeName, options) {
|
|
110
|
+
for await (const page of this.listGlobalBySubscriptionForTopicTypePagingPage(topicTypeName, options)) {
|
|
111
|
+
yield* page;
|
|
112
|
+
}
|
|
147
113
|
}
|
|
148
114
|
/**
|
|
149
115
|
* List all global event subscriptions under a specific Azure subscription and resource group.
|
|
@@ -160,52 +126,35 @@ export class EventSubscriptionsImpl {
|
|
|
160
126
|
return this;
|
|
161
127
|
},
|
|
162
128
|
byPage: (settings) => {
|
|
163
|
-
if (settings
|
|
129
|
+
if (settings?.maxPageSize) {
|
|
164
130
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
165
131
|
}
|
|
166
132
|
return this.listGlobalByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
167
133
|
},
|
|
168
134
|
};
|
|
169
135
|
}
|
|
170
|
-
listGlobalByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
188
|
-
});
|
|
136
|
+
async *listGlobalByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
137
|
+
let result;
|
|
138
|
+
let continuationToken = settings?.continuationToken;
|
|
139
|
+
if (!continuationToken) {
|
|
140
|
+
result = await this._listGlobalByResourceGroup(resourceGroupName, options);
|
|
141
|
+
let page = result.value || [];
|
|
142
|
+
continuationToken = result.nextLink;
|
|
143
|
+
setContinuationToken(page, continuationToken);
|
|
144
|
+
yield page;
|
|
145
|
+
}
|
|
146
|
+
while (continuationToken) {
|
|
147
|
+
result = await this._listGlobalByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
148
|
+
continuationToken = result.nextLink;
|
|
149
|
+
let page = result.value || [];
|
|
150
|
+
setContinuationToken(page, continuationToken);
|
|
151
|
+
yield page;
|
|
152
|
+
}
|
|
189
153
|
}
|
|
190
|
-
listGlobalByResourceGroupPagingAll(resourceGroupName, options) {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
for (var _d = true, _e = __asyncValues(this.listGlobalByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
195
|
-
_c = _f.value;
|
|
196
|
-
_d = false;
|
|
197
|
-
const page = _c;
|
|
198
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
202
|
-
finally {
|
|
203
|
-
try {
|
|
204
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
205
|
-
}
|
|
206
|
-
finally { if (e_3) throw e_3.error; }
|
|
207
|
-
}
|
|
208
|
-
});
|
|
154
|
+
async *listGlobalByResourceGroupPagingAll(resourceGroupName, options) {
|
|
155
|
+
for await (const page of this.listGlobalByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
156
|
+
yield* page;
|
|
157
|
+
}
|
|
209
158
|
}
|
|
210
159
|
/**
|
|
211
160
|
* List all global event subscriptions under a resource group for a specific topic type.
|
|
@@ -223,52 +172,35 @@ export class EventSubscriptionsImpl {
|
|
|
223
172
|
return this;
|
|
224
173
|
},
|
|
225
174
|
byPage: (settings) => {
|
|
226
|
-
if (settings
|
|
175
|
+
if (settings?.maxPageSize) {
|
|
227
176
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
228
177
|
}
|
|
229
178
|
return this.listGlobalByResourceGroupForTopicTypePagingPage(resourceGroupName, topicTypeName, options, settings);
|
|
230
179
|
},
|
|
231
180
|
};
|
|
232
181
|
}
|
|
233
|
-
listGlobalByResourceGroupForTopicTypePagingPage(resourceGroupName, topicTypeName, options, settings) {
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}
|
|
251
|
-
});
|
|
182
|
+
async *listGlobalByResourceGroupForTopicTypePagingPage(resourceGroupName, topicTypeName, options, settings) {
|
|
183
|
+
let result;
|
|
184
|
+
let continuationToken = settings?.continuationToken;
|
|
185
|
+
if (!continuationToken) {
|
|
186
|
+
result = await this._listGlobalByResourceGroupForTopicType(resourceGroupName, topicTypeName, options);
|
|
187
|
+
let page = result.value || [];
|
|
188
|
+
continuationToken = result.nextLink;
|
|
189
|
+
setContinuationToken(page, continuationToken);
|
|
190
|
+
yield page;
|
|
191
|
+
}
|
|
192
|
+
while (continuationToken) {
|
|
193
|
+
result = await this._listGlobalByResourceGroupForTopicTypeNext(resourceGroupName, topicTypeName, continuationToken, options);
|
|
194
|
+
continuationToken = result.nextLink;
|
|
195
|
+
let page = result.value || [];
|
|
196
|
+
setContinuationToken(page, continuationToken);
|
|
197
|
+
yield page;
|
|
198
|
+
}
|
|
252
199
|
}
|
|
253
|
-
listGlobalByResourceGroupForTopicTypePagingAll(resourceGroupName, topicTypeName, options) {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
for (var _d = true, _e = __asyncValues(this.listGlobalByResourceGroupForTopicTypePagingPage(resourceGroupName, topicTypeName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
258
|
-
_c = _f.value;
|
|
259
|
-
_d = false;
|
|
260
|
-
const page = _c;
|
|
261
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
265
|
-
finally {
|
|
266
|
-
try {
|
|
267
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
268
|
-
}
|
|
269
|
-
finally { if (e_4) throw e_4.error; }
|
|
270
|
-
}
|
|
271
|
-
});
|
|
200
|
+
async *listGlobalByResourceGroupForTopicTypePagingAll(resourceGroupName, topicTypeName, options) {
|
|
201
|
+
for await (const page of this.listGlobalByResourceGroupForTopicTypePagingPage(resourceGroupName, topicTypeName, options)) {
|
|
202
|
+
yield* page;
|
|
203
|
+
}
|
|
272
204
|
}
|
|
273
205
|
/**
|
|
274
206
|
* List all event subscriptions from the given location under a specific Azure subscription.
|
|
@@ -285,52 +217,35 @@ export class EventSubscriptionsImpl {
|
|
|
285
217
|
return this;
|
|
286
218
|
},
|
|
287
219
|
byPage: (settings) => {
|
|
288
|
-
if (settings
|
|
220
|
+
if (settings?.maxPageSize) {
|
|
289
221
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
290
222
|
}
|
|
291
223
|
return this.listRegionalBySubscriptionPagingPage(location, options, settings);
|
|
292
224
|
},
|
|
293
225
|
};
|
|
294
226
|
}
|
|
295
|
-
listRegionalBySubscriptionPagingPage(location, options, settings) {
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
}
|
|
313
|
-
});
|
|
227
|
+
async *listRegionalBySubscriptionPagingPage(location, options, settings) {
|
|
228
|
+
let result;
|
|
229
|
+
let continuationToken = settings?.continuationToken;
|
|
230
|
+
if (!continuationToken) {
|
|
231
|
+
result = await this._listRegionalBySubscription(location, options);
|
|
232
|
+
let page = result.value || [];
|
|
233
|
+
continuationToken = result.nextLink;
|
|
234
|
+
setContinuationToken(page, continuationToken);
|
|
235
|
+
yield page;
|
|
236
|
+
}
|
|
237
|
+
while (continuationToken) {
|
|
238
|
+
result = await this._listRegionalBySubscriptionNext(location, continuationToken, options);
|
|
239
|
+
continuationToken = result.nextLink;
|
|
240
|
+
let page = result.value || [];
|
|
241
|
+
setContinuationToken(page, continuationToken);
|
|
242
|
+
yield page;
|
|
243
|
+
}
|
|
314
244
|
}
|
|
315
|
-
listRegionalBySubscriptionPagingAll(location, options) {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
for (var _d = true, _e = __asyncValues(this.listRegionalBySubscriptionPagingPage(location, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
320
|
-
_c = _f.value;
|
|
321
|
-
_d = false;
|
|
322
|
-
const page = _c;
|
|
323
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
327
|
-
finally {
|
|
328
|
-
try {
|
|
329
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
330
|
-
}
|
|
331
|
-
finally { if (e_5) throw e_5.error; }
|
|
332
|
-
}
|
|
333
|
-
});
|
|
245
|
+
async *listRegionalBySubscriptionPagingAll(location, options) {
|
|
246
|
+
for await (const page of this.listRegionalBySubscriptionPagingPage(location, options)) {
|
|
247
|
+
yield* page;
|
|
248
|
+
}
|
|
334
249
|
}
|
|
335
250
|
/**
|
|
336
251
|
* List all event subscriptions from the given location under a specific Azure subscription and
|
|
@@ -349,52 +264,35 @@ export class EventSubscriptionsImpl {
|
|
|
349
264
|
return this;
|
|
350
265
|
},
|
|
351
266
|
byPage: (settings) => {
|
|
352
|
-
if (settings
|
|
267
|
+
if (settings?.maxPageSize) {
|
|
353
268
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
354
269
|
}
|
|
355
270
|
return this.listRegionalByResourceGroupPagingPage(resourceGroupName, location, options, settings);
|
|
356
271
|
},
|
|
357
272
|
};
|
|
358
273
|
}
|
|
359
|
-
listRegionalByResourceGroupPagingPage(resourceGroupName, location, options, settings) {
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
}
|
|
377
|
-
});
|
|
274
|
+
async *listRegionalByResourceGroupPagingPage(resourceGroupName, location, options, settings) {
|
|
275
|
+
let result;
|
|
276
|
+
let continuationToken = settings?.continuationToken;
|
|
277
|
+
if (!continuationToken) {
|
|
278
|
+
result = await this._listRegionalByResourceGroup(resourceGroupName, location, options);
|
|
279
|
+
let page = result.value || [];
|
|
280
|
+
continuationToken = result.nextLink;
|
|
281
|
+
setContinuationToken(page, continuationToken);
|
|
282
|
+
yield page;
|
|
283
|
+
}
|
|
284
|
+
while (continuationToken) {
|
|
285
|
+
result = await this._listRegionalByResourceGroupNext(resourceGroupName, location, continuationToken, options);
|
|
286
|
+
continuationToken = result.nextLink;
|
|
287
|
+
let page = result.value || [];
|
|
288
|
+
setContinuationToken(page, continuationToken);
|
|
289
|
+
yield page;
|
|
290
|
+
}
|
|
378
291
|
}
|
|
379
|
-
listRegionalByResourceGroupPagingAll(resourceGroupName, location, options) {
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
for (var _d = true, _e = __asyncValues(this.listRegionalByResourceGroupPagingPage(resourceGroupName, location, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
384
|
-
_c = _f.value;
|
|
385
|
-
_d = false;
|
|
386
|
-
const page = _c;
|
|
387
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
391
|
-
finally {
|
|
392
|
-
try {
|
|
393
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
394
|
-
}
|
|
395
|
-
finally { if (e_6) throw e_6.error; }
|
|
396
|
-
}
|
|
397
|
-
});
|
|
292
|
+
async *listRegionalByResourceGroupPagingAll(resourceGroupName, location, options) {
|
|
293
|
+
for await (const page of this.listRegionalByResourceGroupPagingPage(resourceGroupName, location, options)) {
|
|
294
|
+
yield* page;
|
|
295
|
+
}
|
|
398
296
|
}
|
|
399
297
|
/**
|
|
400
298
|
* List all event subscriptions from the given location under a specific Azure subscription and topic
|
|
@@ -413,52 +311,35 @@ export class EventSubscriptionsImpl {
|
|
|
413
311
|
return this;
|
|
414
312
|
},
|
|
415
313
|
byPage: (settings) => {
|
|
416
|
-
if (settings
|
|
314
|
+
if (settings?.maxPageSize) {
|
|
417
315
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
418
316
|
}
|
|
419
317
|
return this.listRegionalBySubscriptionForTopicTypePagingPage(location, topicTypeName, options, settings);
|
|
420
318
|
},
|
|
421
319
|
};
|
|
422
320
|
}
|
|
423
|
-
listRegionalBySubscriptionForTopicTypePagingPage(location, topicTypeName, options, settings) {
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
}
|
|
441
|
-
});
|
|
321
|
+
async *listRegionalBySubscriptionForTopicTypePagingPage(location, topicTypeName, options, settings) {
|
|
322
|
+
let result;
|
|
323
|
+
let continuationToken = settings?.continuationToken;
|
|
324
|
+
if (!continuationToken) {
|
|
325
|
+
result = await this._listRegionalBySubscriptionForTopicType(location, topicTypeName, options);
|
|
326
|
+
let page = result.value || [];
|
|
327
|
+
continuationToken = result.nextLink;
|
|
328
|
+
setContinuationToken(page, continuationToken);
|
|
329
|
+
yield page;
|
|
330
|
+
}
|
|
331
|
+
while (continuationToken) {
|
|
332
|
+
result = await this._listRegionalBySubscriptionForTopicTypeNext(location, topicTypeName, continuationToken, options);
|
|
333
|
+
continuationToken = result.nextLink;
|
|
334
|
+
let page = result.value || [];
|
|
335
|
+
setContinuationToken(page, continuationToken);
|
|
336
|
+
yield page;
|
|
337
|
+
}
|
|
442
338
|
}
|
|
443
|
-
listRegionalBySubscriptionForTopicTypePagingAll(location, topicTypeName, options) {
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
for (var _d = true, _e = __asyncValues(this.listRegionalBySubscriptionForTopicTypePagingPage(location, topicTypeName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
448
|
-
_c = _f.value;
|
|
449
|
-
_d = false;
|
|
450
|
-
const page = _c;
|
|
451
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
|
455
|
-
finally {
|
|
456
|
-
try {
|
|
457
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
458
|
-
}
|
|
459
|
-
finally { if (e_7) throw e_7.error; }
|
|
460
|
-
}
|
|
461
|
-
});
|
|
339
|
+
async *listRegionalBySubscriptionForTopicTypePagingAll(location, topicTypeName, options) {
|
|
340
|
+
for await (const page of this.listRegionalBySubscriptionForTopicTypePagingPage(location, topicTypeName, options)) {
|
|
341
|
+
yield* page;
|
|
342
|
+
}
|
|
462
343
|
}
|
|
463
344
|
/**
|
|
464
345
|
* List all event subscriptions from the given location under a specific Azure subscription and
|
|
@@ -478,52 +359,35 @@ export class EventSubscriptionsImpl {
|
|
|
478
359
|
return this;
|
|
479
360
|
},
|
|
480
361
|
byPage: (settings) => {
|
|
481
|
-
if (settings
|
|
362
|
+
if (settings?.maxPageSize) {
|
|
482
363
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
483
364
|
}
|
|
484
365
|
return this.listRegionalByResourceGroupForTopicTypePagingPage(resourceGroupName, location, topicTypeName, options, settings);
|
|
485
366
|
},
|
|
486
367
|
};
|
|
487
368
|
}
|
|
488
|
-
listRegionalByResourceGroupForTopicTypePagingPage(resourceGroupName, location, topicTypeName, options, settings) {
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
}
|
|
506
|
-
});
|
|
369
|
+
async *listRegionalByResourceGroupForTopicTypePagingPage(resourceGroupName, location, topicTypeName, options, settings) {
|
|
370
|
+
let result;
|
|
371
|
+
let continuationToken = settings?.continuationToken;
|
|
372
|
+
if (!continuationToken) {
|
|
373
|
+
result = await this._listRegionalByResourceGroupForTopicType(resourceGroupName, location, topicTypeName, options);
|
|
374
|
+
let page = result.value || [];
|
|
375
|
+
continuationToken = result.nextLink;
|
|
376
|
+
setContinuationToken(page, continuationToken);
|
|
377
|
+
yield page;
|
|
378
|
+
}
|
|
379
|
+
while (continuationToken) {
|
|
380
|
+
result = await this._listRegionalByResourceGroupForTopicTypeNext(resourceGroupName, location, topicTypeName, continuationToken, options);
|
|
381
|
+
continuationToken = result.nextLink;
|
|
382
|
+
let page = result.value || [];
|
|
383
|
+
setContinuationToken(page, continuationToken);
|
|
384
|
+
yield page;
|
|
385
|
+
}
|
|
507
386
|
}
|
|
508
|
-
listRegionalByResourceGroupForTopicTypePagingAll(resourceGroupName, location, topicTypeName, options) {
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
for (var _d = true, _e = __asyncValues(this.listRegionalByResourceGroupForTopicTypePagingPage(resourceGroupName, location, topicTypeName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
513
|
-
_c = _f.value;
|
|
514
|
-
_d = false;
|
|
515
|
-
const page = _c;
|
|
516
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
catch (e_8_1) { e_8 = { error: e_8_1 }; }
|
|
520
|
-
finally {
|
|
521
|
-
try {
|
|
522
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
523
|
-
}
|
|
524
|
-
finally { if (e_8) throw e_8.error; }
|
|
525
|
-
}
|
|
526
|
-
});
|
|
387
|
+
async *listRegionalByResourceGroupForTopicTypePagingAll(resourceGroupName, location, topicTypeName, options) {
|
|
388
|
+
for await (const page of this.listRegionalByResourceGroupForTopicTypePagingPage(resourceGroupName, location, topicTypeName, options)) {
|
|
389
|
+
yield* page;
|
|
390
|
+
}
|
|
527
391
|
}
|
|
528
392
|
/**
|
|
529
393
|
* List all event subscriptions that have been created for a specific resource.
|
|
@@ -543,52 +407,35 @@ export class EventSubscriptionsImpl {
|
|
|
543
407
|
return this;
|
|
544
408
|
},
|
|
545
409
|
byPage: (settings) => {
|
|
546
|
-
if (settings
|
|
410
|
+
if (settings?.maxPageSize) {
|
|
547
411
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
548
412
|
}
|
|
549
413
|
return this.listByResourcePagingPage(resourceGroupName, providerNamespace, resourceTypeName, resourceName, options, settings);
|
|
550
414
|
},
|
|
551
415
|
};
|
|
552
416
|
}
|
|
553
|
-
listByResourcePagingPage(resourceGroupName, providerNamespace, resourceTypeName, resourceName, options, settings) {
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
}
|
|
571
|
-
});
|
|
417
|
+
async *listByResourcePagingPage(resourceGroupName, providerNamespace, resourceTypeName, resourceName, options, settings) {
|
|
418
|
+
let result;
|
|
419
|
+
let continuationToken = settings?.continuationToken;
|
|
420
|
+
if (!continuationToken) {
|
|
421
|
+
result = await this._listByResource(resourceGroupName, providerNamespace, resourceTypeName, resourceName, options);
|
|
422
|
+
let page = result.value || [];
|
|
423
|
+
continuationToken = result.nextLink;
|
|
424
|
+
setContinuationToken(page, continuationToken);
|
|
425
|
+
yield page;
|
|
426
|
+
}
|
|
427
|
+
while (continuationToken) {
|
|
428
|
+
result = await this._listByResourceNext(resourceGroupName, providerNamespace, resourceTypeName, resourceName, continuationToken, options);
|
|
429
|
+
continuationToken = result.nextLink;
|
|
430
|
+
let page = result.value || [];
|
|
431
|
+
setContinuationToken(page, continuationToken);
|
|
432
|
+
yield page;
|
|
433
|
+
}
|
|
572
434
|
}
|
|
573
|
-
listByResourcePagingAll(resourceGroupName, providerNamespace, resourceTypeName, resourceName, options) {
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
for (var _d = true, _e = __asyncValues(this.listByResourcePagingPage(resourceGroupName, providerNamespace, resourceTypeName, resourceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
578
|
-
_c = _f.value;
|
|
579
|
-
_d = false;
|
|
580
|
-
const page = _c;
|
|
581
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
catch (e_9_1) { e_9 = { error: e_9_1 }; }
|
|
585
|
-
finally {
|
|
586
|
-
try {
|
|
587
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
588
|
-
}
|
|
589
|
-
finally { if (e_9) throw e_9.error; }
|
|
590
|
-
}
|
|
591
|
-
});
|
|
435
|
+
async *listByResourcePagingAll(resourceGroupName, providerNamespace, resourceTypeName, resourceName, options) {
|
|
436
|
+
for await (const page of this.listByResourcePagingPage(resourceGroupName, providerNamespace, resourceTypeName, resourceName, options)) {
|
|
437
|
+
yield* page;
|
|
438
|
+
}
|
|
592
439
|
}
|
|
593
440
|
/**
|
|
594
441
|
* List all event subscriptions that have been created for a specific domain topic.
|
|
@@ -607,52 +454,35 @@ export class EventSubscriptionsImpl {
|
|
|
607
454
|
return this;
|
|
608
455
|
},
|
|
609
456
|
byPage: (settings) => {
|
|
610
|
-
if (settings
|
|
457
|
+
if (settings?.maxPageSize) {
|
|
611
458
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
612
459
|
}
|
|
613
460
|
return this.listByDomainTopicPagingPage(resourceGroupName, domainName, topicName, options, settings);
|
|
614
461
|
},
|
|
615
462
|
};
|
|
616
463
|
}
|
|
617
|
-
listByDomainTopicPagingPage(resourceGroupName, domainName, topicName, options, settings) {
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
}
|
|
635
|
-
});
|
|
464
|
+
async *listByDomainTopicPagingPage(resourceGroupName, domainName, topicName, options, settings) {
|
|
465
|
+
let result;
|
|
466
|
+
let continuationToken = settings?.continuationToken;
|
|
467
|
+
if (!continuationToken) {
|
|
468
|
+
result = await this._listByDomainTopic(resourceGroupName, domainName, topicName, options);
|
|
469
|
+
let page = result.value || [];
|
|
470
|
+
continuationToken = result.nextLink;
|
|
471
|
+
setContinuationToken(page, continuationToken);
|
|
472
|
+
yield page;
|
|
473
|
+
}
|
|
474
|
+
while (continuationToken) {
|
|
475
|
+
result = await this._listByDomainTopicNext(resourceGroupName, domainName, topicName, continuationToken, options);
|
|
476
|
+
continuationToken = result.nextLink;
|
|
477
|
+
let page = result.value || [];
|
|
478
|
+
setContinuationToken(page, continuationToken);
|
|
479
|
+
yield page;
|
|
480
|
+
}
|
|
636
481
|
}
|
|
637
|
-
listByDomainTopicPagingAll(resourceGroupName, domainName, topicName, options) {
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
for (var _d = true, _e = __asyncValues(this.listByDomainTopicPagingPage(resourceGroupName, domainName, topicName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
642
|
-
_c = _f.value;
|
|
643
|
-
_d = false;
|
|
644
|
-
const page = _c;
|
|
645
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
catch (e_10_1) { e_10 = { error: e_10_1 }; }
|
|
649
|
-
finally {
|
|
650
|
-
try {
|
|
651
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
652
|
-
}
|
|
653
|
-
finally { if (e_10) throw e_10.error; }
|
|
654
|
-
}
|
|
655
|
-
});
|
|
482
|
+
async *listByDomainTopicPagingAll(resourceGroupName, domainName, topicName, options) {
|
|
483
|
+
for await (const page of this.listByDomainTopicPagingPage(resourceGroupName, domainName, topicName, options)) {
|
|
484
|
+
yield* page;
|
|
485
|
+
}
|
|
656
486
|
}
|
|
657
487
|
/**
|
|
658
488
|
* Get properties of an event subscription.
|
|
@@ -693,14 +523,19 @@ export class EventSubscriptionsImpl {
|
|
|
693
523
|
return this.client.sendOperationRequest(args, spec);
|
|
694
524
|
};
|
|
695
525
|
const sendOperationFn = async (args, spec) => {
|
|
696
|
-
var _a;
|
|
697
526
|
let currentRawResponse = undefined;
|
|
698
|
-
const providedCallback =
|
|
527
|
+
const providedCallback = args.options?.onResponse;
|
|
699
528
|
const callback = (rawResponse, flatResponse) => {
|
|
700
529
|
currentRawResponse = rawResponse;
|
|
701
|
-
providedCallback
|
|
530
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
531
|
+
};
|
|
532
|
+
const updatedArgs = {
|
|
533
|
+
...args,
|
|
534
|
+
options: {
|
|
535
|
+
...args.options,
|
|
536
|
+
onResponse: callback,
|
|
537
|
+
},
|
|
702
538
|
};
|
|
703
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
704
539
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
705
540
|
return {
|
|
706
541
|
flatResponse,
|
|
@@ -717,8 +552,8 @@ export class EventSubscriptionsImpl {
|
|
|
717
552
|
spec: createOrUpdateOperationSpec,
|
|
718
553
|
});
|
|
719
554
|
const poller = await createHttpPoller(lro, {
|
|
720
|
-
restoreFrom: options
|
|
721
|
-
intervalInMs: options
|
|
555
|
+
restoreFrom: options?.resumeFrom,
|
|
556
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
722
557
|
});
|
|
723
558
|
await poller.poll();
|
|
724
559
|
return poller;
|
|
@@ -763,14 +598,19 @@ export class EventSubscriptionsImpl {
|
|
|
763
598
|
return this.client.sendOperationRequest(args, spec);
|
|
764
599
|
};
|
|
765
600
|
const sendOperationFn = async (args, spec) => {
|
|
766
|
-
var _a;
|
|
767
601
|
let currentRawResponse = undefined;
|
|
768
|
-
const providedCallback =
|
|
602
|
+
const providedCallback = args.options?.onResponse;
|
|
769
603
|
const callback = (rawResponse, flatResponse) => {
|
|
770
604
|
currentRawResponse = rawResponse;
|
|
771
|
-
providedCallback
|
|
605
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
606
|
+
};
|
|
607
|
+
const updatedArgs = {
|
|
608
|
+
...args,
|
|
609
|
+
options: {
|
|
610
|
+
...args.options,
|
|
611
|
+
onResponse: callback,
|
|
612
|
+
},
|
|
772
613
|
};
|
|
773
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
774
614
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
775
615
|
return {
|
|
776
616
|
flatResponse,
|
|
@@ -787,8 +627,8 @@ export class EventSubscriptionsImpl {
|
|
|
787
627
|
spec: deleteOperationSpec,
|
|
788
628
|
});
|
|
789
629
|
const poller = await createHttpPoller(lro, {
|
|
790
|
-
restoreFrom: options
|
|
791
|
-
intervalInMs: options
|
|
630
|
+
restoreFrom: options?.resumeFrom,
|
|
631
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
792
632
|
});
|
|
793
633
|
await poller.poll();
|
|
794
634
|
return poller;
|
|
@@ -829,14 +669,19 @@ export class EventSubscriptionsImpl {
|
|
|
829
669
|
return this.client.sendOperationRequest(args, spec);
|
|
830
670
|
};
|
|
831
671
|
const sendOperationFn = async (args, spec) => {
|
|
832
|
-
var _a;
|
|
833
672
|
let currentRawResponse = undefined;
|
|
834
|
-
const providedCallback =
|
|
673
|
+
const providedCallback = args.options?.onResponse;
|
|
835
674
|
const callback = (rawResponse, flatResponse) => {
|
|
836
675
|
currentRawResponse = rawResponse;
|
|
837
|
-
providedCallback
|
|
676
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
677
|
+
};
|
|
678
|
+
const updatedArgs = {
|
|
679
|
+
...args,
|
|
680
|
+
options: {
|
|
681
|
+
...args.options,
|
|
682
|
+
onResponse: callback,
|
|
683
|
+
},
|
|
838
684
|
};
|
|
839
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
840
685
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
841
686
|
return {
|
|
842
687
|
flatResponse,
|
|
@@ -858,8 +703,8 @@ export class EventSubscriptionsImpl {
|
|
|
858
703
|
spec: updateOperationSpec,
|
|
859
704
|
});
|
|
860
705
|
const poller = await createHttpPoller(lro, {
|
|
861
|
-
restoreFrom: options
|
|
862
|
-
intervalInMs: options
|
|
706
|
+
restoreFrom: options?.resumeFrom,
|
|
707
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
863
708
|
});
|
|
864
709
|
await poller.poll();
|
|
865
710
|
return poller;
|