@azure/arm-eventgrid 14.2.0 → 15.0.0-beta.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/README.md +5 -3
- package/dist/browser/eventGridManagementClient.d.ts +6 -4
- package/dist/browser/eventGridManagementClient.d.ts.map +1 -1
- package/dist/browser/eventGridManagementClient.js +10 -7
- package/dist/browser/eventGridManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.d.ts.map +1 -1
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/index.d.ts +1000 -283
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +174 -16
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/mappers.d.ts +48 -8
- package/dist/browser/models/mappers.d.ts.map +1 -1
- package/dist/browser/models/mappers.js +1301 -268
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/models/parameters.d.ts +13 -6
- package/dist/browser/models/parameters.d.ts.map +1 -1
- package/dist/browser/models/parameters.js +116 -48
- package/dist/browser/models/parameters.js.map +1 -1
- package/dist/browser/operations/domainTopicEventSubscriptions.d.ts +10 -10
- package/dist/browser/operations/domainTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/browser/operations/domainTopicEventSubscriptions.js +38 -38
- package/dist/browser/operations/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/browser/operations/eventSubscriptions.d.ts +15 -15
- package/dist/browser/operations/eventSubscriptions.d.ts.map +1 -1
- package/dist/browser/operations/eventSubscriptions.js +34 -34
- package/dist/browser/operations/eventSubscriptions.js.map +1 -1
- package/dist/browser/operations/index.d.ts +5 -3
- package/dist/browser/operations/index.d.ts.map +1 -1
- package/dist/browser/operations/index.js +5 -3
- package/dist/browser/operations/index.js.map +1 -1
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.d.ts +68 -0
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.js +256 -0
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist/browser/operations/partnerDestinations.d.ts +114 -0
- package/dist/browser/operations/partnerDestinations.d.ts.map +1 -0
- package/dist/browser/operations/partnerDestinations.js +574 -0
- package/dist/browser/operations/partnerDestinations.js.map +1 -0
- package/dist/browser/operations/systemTopicEventSubscriptions.d.ts +9 -9
- package/dist/browser/operations/systemTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/browser/operations/systemTopicEventSubscriptions.js +30 -30
- package/dist/browser/operations/systemTopicEventSubscriptions.js.map +1 -1
- package/dist/browser/operationsInterfaces/domainTopicEventSubscriptions.d.ts +10 -10
- package/dist/browser/operationsInterfaces/domainTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/browser/operationsInterfaces/eventSubscriptions.d.ts +15 -15
- package/dist/browser/operationsInterfaces/eventSubscriptions.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/eventSubscriptions.js.map +1 -1
- package/dist/browser/operationsInterfaces/index.d.ts +5 -3
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/index.js +5 -3
- package/dist/browser/operationsInterfaces/index.js.map +1 -1
- package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +50 -0
- package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.js +9 -0
- package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist/browser/operationsInterfaces/partnerDestinations.d.ts +78 -0
- package/dist/browser/operationsInterfaces/partnerDestinations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/partnerDestinations.js +9 -0
- package/dist/browser/operationsInterfaces/partnerDestinations.js.map +1 -0
- package/dist/browser/operationsInterfaces/systemTopicEventSubscriptions.d.ts +9 -9
- package/dist/browser/operationsInterfaces/systemTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/systemTopicEventSubscriptions.js.map +1 -1
- package/dist/commonjs/eventGridManagementClient.d.ts +6 -4
- package/dist/commonjs/eventGridManagementClient.d.ts.map +1 -1
- package/dist/commonjs/eventGridManagementClient.js +9 -6
- package/dist/commonjs/eventGridManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.d.ts.map +1 -1
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +1000 -283
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +176 -18
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/mappers.d.ts +48 -8
- package/dist/commonjs/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/models/mappers.js +1306 -273
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/models/parameters.d.ts +13 -6
- package/dist/commonjs/models/parameters.d.ts.map +1 -1
- package/dist/commonjs/models/parameters.js +117 -49
- package/dist/commonjs/models/parameters.js.map +1 -1
- package/dist/commonjs/operations/domainTopicEventSubscriptions.d.ts +10 -10
- package/dist/commonjs/operations/domainTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/commonjs/operations/domainTopicEventSubscriptions.js +38 -38
- package/dist/commonjs/operations/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/commonjs/operations/eventSubscriptions.d.ts +15 -15
- package/dist/commonjs/operations/eventSubscriptions.d.ts.map +1 -1
- package/dist/commonjs/operations/eventSubscriptions.js +34 -34
- package/dist/commonjs/operations/eventSubscriptions.js.map +1 -1
- package/dist/commonjs/operations/index.d.ts +5 -3
- package/dist/commonjs/operations/index.d.ts.map +1 -1
- package/dist/commonjs/operations/index.js +5 -3
- package/dist/commonjs/operations/index.js.map +1 -1
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.d.ts +68 -0
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js +260 -0
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist/commonjs/operations/partnerDestinations.d.ts +114 -0
- package/dist/commonjs/operations/partnerDestinations.d.ts.map +1 -0
- package/dist/commonjs/operations/partnerDestinations.js +578 -0
- package/dist/commonjs/operations/partnerDestinations.js.map +1 -0
- package/dist/commonjs/operations/systemTopicEventSubscriptions.d.ts +9 -9
- package/dist/commonjs/operations/systemTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/commonjs/operations/systemTopicEventSubscriptions.js +30 -30
- package/dist/commonjs/operations/systemTopicEventSubscriptions.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/domainTopicEventSubscriptions.d.ts +10 -10
- package/dist/commonjs/operationsInterfaces/domainTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/eventSubscriptions.d.ts +15 -15
- package/dist/commonjs/operationsInterfaces/eventSubscriptions.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/eventSubscriptions.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.d.ts +5 -3
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.js +5 -3
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +50 -0
- package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.js +10 -0
- package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/partnerDestinations.d.ts +78 -0
- package/dist/commonjs/operationsInterfaces/partnerDestinations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/partnerDestinations.js +10 -0
- package/dist/commonjs/operationsInterfaces/partnerDestinations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/systemTopicEventSubscriptions.d.ts +9 -9
- package/dist/commonjs/operationsInterfaces/systemTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/systemTopicEventSubscriptions.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/eventGridManagementClient.d.ts +6 -4
- package/dist/esm/eventGridManagementClient.d.ts.map +1 -1
- package/dist/esm/eventGridManagementClient.js +10 -7
- package/dist/esm/eventGridManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.d.ts.map +1 -1
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/index.d.ts +1000 -283
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +174 -16
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/mappers.d.ts +48 -8
- package/dist/esm/models/mappers.d.ts.map +1 -1
- package/dist/esm/models/mappers.js +1301 -268
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/models/parameters.d.ts +13 -6
- package/dist/esm/models/parameters.d.ts.map +1 -1
- package/dist/esm/models/parameters.js +116 -48
- package/dist/esm/models/parameters.js.map +1 -1
- package/dist/esm/operations/domainTopicEventSubscriptions.d.ts +10 -10
- package/dist/esm/operations/domainTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/esm/operations/domainTopicEventSubscriptions.js +38 -38
- package/dist/esm/operations/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/esm/operations/eventSubscriptions.d.ts +15 -15
- package/dist/esm/operations/eventSubscriptions.d.ts.map +1 -1
- package/dist/esm/operations/eventSubscriptions.js +34 -34
- package/dist/esm/operations/eventSubscriptions.js.map +1 -1
- package/dist/esm/operations/index.d.ts +5 -3
- package/dist/esm/operations/index.d.ts.map +1 -1
- package/dist/esm/operations/index.js +5 -3
- package/dist/esm/operations/index.js.map +1 -1
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.d.ts +68 -0
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.js +256 -0
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist/esm/operations/partnerDestinations.d.ts +114 -0
- package/dist/esm/operations/partnerDestinations.d.ts.map +1 -0
- package/dist/esm/operations/partnerDestinations.js +574 -0
- package/dist/esm/operations/partnerDestinations.js.map +1 -0
- package/dist/esm/operations/systemTopicEventSubscriptions.d.ts +9 -9
- package/dist/esm/operations/systemTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/esm/operations/systemTopicEventSubscriptions.js +30 -30
- package/dist/esm/operations/systemTopicEventSubscriptions.js.map +1 -1
- package/dist/esm/operationsInterfaces/domainTopicEventSubscriptions.d.ts +10 -10
- package/dist/esm/operationsInterfaces/domainTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/esm/operationsInterfaces/eventSubscriptions.d.ts +15 -15
- package/dist/esm/operationsInterfaces/eventSubscriptions.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/eventSubscriptions.js.map +1 -1
- package/dist/esm/operationsInterfaces/index.d.ts +5 -3
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/index.js +5 -3
- package/dist/esm/operationsInterfaces/index.js.map +1 -1
- package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +50 -0
- package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.js +9 -0
- package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist/esm/operationsInterfaces/partnerDestinations.d.ts +78 -0
- package/dist/esm/operationsInterfaces/partnerDestinations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/partnerDestinations.js +9 -0
- package/dist/esm/operationsInterfaces/partnerDestinations.js.map +1 -0
- package/dist/esm/operationsInterfaces/systemTopicEventSubscriptions.d.ts +9 -9
- package/dist/esm/operationsInterfaces/systemTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/systemTopicEventSubscriptions.js.map +1 -1
- package/dist/react-native/eventGridManagementClient.d.ts +6 -4
- package/dist/react-native/eventGridManagementClient.d.ts.map +1 -1
- package/dist/react-native/eventGridManagementClient.js +10 -7
- package/dist/react-native/eventGridManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.d.ts.map +1 -1
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/index.d.ts +1000 -283
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +174 -16
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/mappers.d.ts +48 -8
- package/dist/react-native/models/mappers.d.ts.map +1 -1
- package/dist/react-native/models/mappers.js +1301 -268
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/models/parameters.d.ts +13 -6
- package/dist/react-native/models/parameters.d.ts.map +1 -1
- package/dist/react-native/models/parameters.js +116 -48
- package/dist/react-native/models/parameters.js.map +1 -1
- package/dist/react-native/operations/domainTopicEventSubscriptions.d.ts +10 -10
- package/dist/react-native/operations/domainTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/react-native/operations/domainTopicEventSubscriptions.js +38 -38
- package/dist/react-native/operations/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/react-native/operations/eventSubscriptions.d.ts +15 -15
- package/dist/react-native/operations/eventSubscriptions.d.ts.map +1 -1
- package/dist/react-native/operations/eventSubscriptions.js +34 -34
- package/dist/react-native/operations/eventSubscriptions.js.map +1 -1
- package/dist/react-native/operations/index.d.ts +5 -3
- package/dist/react-native/operations/index.d.ts.map +1 -1
- package/dist/react-native/operations/index.js +5 -3
- package/dist/react-native/operations/index.js.map +1 -1
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.d.ts +68 -0
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js +256 -0
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist/react-native/operations/partnerDestinations.d.ts +114 -0
- package/dist/react-native/operations/partnerDestinations.d.ts.map +1 -0
- package/dist/react-native/operations/partnerDestinations.js +574 -0
- package/dist/react-native/operations/partnerDestinations.js.map +1 -0
- package/dist/react-native/operations/systemTopicEventSubscriptions.d.ts +9 -9
- package/dist/react-native/operations/systemTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/react-native/operations/systemTopicEventSubscriptions.js +30 -30
- package/dist/react-native/operations/systemTopicEventSubscriptions.js.map +1 -1
- package/dist/react-native/operationsInterfaces/domainTopicEventSubscriptions.d.ts +10 -10
- package/dist/react-native/operationsInterfaces/domainTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/react-native/operationsInterfaces/eventSubscriptions.d.ts +15 -15
- package/dist/react-native/operationsInterfaces/eventSubscriptions.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/eventSubscriptions.js.map +1 -1
- package/dist/react-native/operationsInterfaces/index.d.ts +5 -3
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/index.js +5 -3
- package/dist/react-native/operationsInterfaces/index.js.map +1 -1
- package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +50 -0
- package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.js +9 -0
- package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/partnerDestinations.d.ts +78 -0
- package/dist/react-native/operationsInterfaces/partnerDestinations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/partnerDestinations.js +9 -0
- package/dist/react-native/operationsInterfaces/partnerDestinations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/systemTopicEventSubscriptions.d.ts +9 -9
- package/dist/react-native/operationsInterfaces/systemTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/systemTopicEventSubscriptions.js.map +1 -1
- package/package.json +32 -45
- package/CHANGELOG.md +0 -2065
- package/review/arm-eventgrid.api.md +0 -4226
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Azure EventGrid Management Client
|
|
|
6
6
|
|
|
7
7
|
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventgrid/arm-eventgrid) |
|
|
8
8
|
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-eventgrid) |
|
|
9
|
-
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-eventgrid) |
|
|
9
|
+
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-eventgrid?view=azure-node-preview) |
|
|
10
10
|
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
|
|
11
11
|
|
|
12
12
|
## Getting started
|
|
@@ -63,10 +63,11 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
|
|
|
63
63
|
import { InteractiveBrowserCredential } from "@azure/identity";
|
|
64
64
|
import { EventGridManagementClient } from "@azure/arm-eventgrid";
|
|
65
65
|
|
|
66
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
66
67
|
const credential = new InteractiveBrowserCredential({
|
|
67
68
|
tenantId: "<YOUR_TENANT_ID>",
|
|
68
|
-
clientId: "<YOUR_CLIENT_ID>"
|
|
69
|
-
|
|
69
|
+
clientId: "<YOUR_CLIENT_ID>",
|
|
70
|
+
});
|
|
70
71
|
const client = new EventGridManagementClient(credential, subscriptionId);
|
|
71
72
|
```
|
|
72
73
|
|
|
@@ -105,6 +106,7 @@ If you'd like to contribute to this library, please read the [contributing guide
|
|
|
105
106
|
|
|
106
107
|
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
|
|
107
108
|
|
|
109
|
+
|
|
108
110
|
[azure_cli]: https://learn.microsoft.com/cli/azure
|
|
109
111
|
[azure_sub]: https://azure.microsoft.com/free/
|
|
110
112
|
[azure_sub]: https://azure.microsoft.com/free/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as coreClient from "@azure/core-client";
|
|
2
2
|
import * as coreAuth from "@azure/core-auth";
|
|
3
|
-
import { CaCertificates, Channels, ClientGroups, Clients, Domains, DomainTopics, TopicEventSubscriptions, DomainEventSubscriptions,
|
|
3
|
+
import { CaCertificates, Channels, ClientGroups, Clients, Domains, DomainTopics, DomainTopicEventSubscriptions, TopicEventSubscriptions, DomainEventSubscriptions, EventSubscriptions, SystemTopicEventSubscriptions, NamespaceTopicEventSubscriptions, PartnerTopicEventSubscriptions, Namespaces, NamespaceTopics, Operations, PartnerConfigurations, PartnerDestinations, PartnerNamespaces, PartnerRegistrations, PartnerTopics, NetworkSecurityPerimeterConfigurations, PermissionBindings, PrivateEndpointConnections, PrivateLinkResources, SystemTopics, Topics, ExtensionTopics, TopicSpaces, TopicTypes, VerifiedPartners } from "./operationsInterfaces/index.js";
|
|
4
4
|
import { EventGridManagementClientOptionalParams } from "./models/index.js";
|
|
5
5
|
export declare class EventGridManagementClient extends coreClient.ServiceClient {
|
|
6
6
|
$host: string;
|
|
@@ -23,25 +23,27 @@ export declare class EventGridManagementClient extends coreClient.ServiceClient
|
|
|
23
23
|
clients: Clients;
|
|
24
24
|
domains: Domains;
|
|
25
25
|
domainTopics: DomainTopics;
|
|
26
|
+
domainTopicEventSubscriptions: DomainTopicEventSubscriptions;
|
|
26
27
|
topicEventSubscriptions: TopicEventSubscriptions;
|
|
27
28
|
domainEventSubscriptions: DomainEventSubscriptions;
|
|
28
|
-
namespaceTopicEventSubscriptions: NamespaceTopicEventSubscriptions;
|
|
29
29
|
eventSubscriptions: EventSubscriptions;
|
|
30
|
-
domainTopicEventSubscriptions: DomainTopicEventSubscriptions;
|
|
31
30
|
systemTopicEventSubscriptions: SystemTopicEventSubscriptions;
|
|
31
|
+
namespaceTopicEventSubscriptions: NamespaceTopicEventSubscriptions;
|
|
32
32
|
partnerTopicEventSubscriptions: PartnerTopicEventSubscriptions;
|
|
33
33
|
namespaces: Namespaces;
|
|
34
34
|
namespaceTopics: NamespaceTopics;
|
|
35
35
|
operations: Operations;
|
|
36
|
-
topics: Topics;
|
|
37
36
|
partnerConfigurations: PartnerConfigurations;
|
|
37
|
+
partnerDestinations: PartnerDestinations;
|
|
38
38
|
partnerNamespaces: PartnerNamespaces;
|
|
39
39
|
partnerRegistrations: PartnerRegistrations;
|
|
40
40
|
partnerTopics: PartnerTopics;
|
|
41
|
+
networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations;
|
|
41
42
|
permissionBindings: PermissionBindings;
|
|
42
43
|
privateEndpointConnections: PrivateEndpointConnections;
|
|
43
44
|
privateLinkResources: PrivateLinkResources;
|
|
44
45
|
systemTopics: SystemTopics;
|
|
46
|
+
topics: Topics;
|
|
45
47
|
extensionTopics: ExtensionTopics;
|
|
46
48
|
topicSpaces: TopicSpaces;
|
|
47
49
|
topicTypes: TopicTypes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventGridManagementClient.d.ts","sourceRoot":"","sources":["../../src/eventGridManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"eventGridManagementClient.d.ts","sourceRoot":"","sources":["../../src/eventGridManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAA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A6B,CAAC;IAC7D,gCAAgC,EAAE,gCAAgC,CAAC;IACnE,8BAA8B,EAAE,8BAA8B,CAAC;IAC/D,UAAU,EAAE,UAAU,CAAC;IACvB,eAAe,EAAE,eAAe,CAAC;IACjC,UAAU,EAAE,UAAU,CAAC;IACvB,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,aAAa,EAAE,aAAa,CAAC;IAC7B,sCAAsC,EAAE,sCAAsC,CAAC;IAC/E,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,YAAY,EAAE,YAAY,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,eAAe,CAAC;IACjC,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,UAAU,CAAC;IACvB,gBAAgB,EAAE,gBAAgB,CAAC;CACpC"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as coreClient from "@azure/core-client";
|
|
9
9
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
|
-
import { CaCertificatesImpl, ChannelsImpl, ClientGroupsImpl, ClientsImpl, DomainsImpl, DomainTopicsImpl, TopicEventSubscriptionsImpl, DomainEventSubscriptionsImpl,
|
|
10
|
+
import { CaCertificatesImpl, ChannelsImpl, ClientGroupsImpl, ClientsImpl, DomainsImpl, DomainTopicsImpl, DomainTopicEventSubscriptionsImpl, TopicEventSubscriptionsImpl, DomainEventSubscriptionsImpl, EventSubscriptionsImpl, SystemTopicEventSubscriptionsImpl, NamespaceTopicEventSubscriptionsImpl, PartnerTopicEventSubscriptionsImpl, NamespacesImpl, NamespaceTopicsImpl, OperationsImpl, PartnerConfigurationsImpl, PartnerDestinationsImpl, PartnerNamespacesImpl, PartnerRegistrationsImpl, PartnerTopicsImpl, NetworkSecurityPerimeterConfigurationsImpl, PermissionBindingsImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, SystemTopicsImpl, TopicsImpl, ExtensionTopicsImpl, TopicSpacesImpl, TopicTypesImpl, VerifiedPartnersImpl, } from "./operations/index.js";
|
|
11
11
|
export class EventGridManagementClient extends coreClient.ServiceClient {
|
|
12
12
|
constructor(credentials, subscriptionIdOrOptions, options) {
|
|
13
13
|
var _a, _b, _c;
|
|
@@ -29,7 +29,7 @@ export class EventGridManagementClient extends coreClient.ServiceClient {
|
|
|
29
29
|
requestContentType: "application/json; charset=utf-8",
|
|
30
30
|
credential: credentials,
|
|
31
31
|
};
|
|
32
|
-
const packageDetails = `azsdk-js-arm-eventgrid/
|
|
32
|
+
const packageDetails = `azsdk-js-arm-eventgrid/15.0.0-beta.1`;
|
|
33
33
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
34
34
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
35
35
|
: `${packageDetails}`;
|
|
@@ -62,34 +62,37 @@ export class EventGridManagementClient extends coreClient.ServiceClient {
|
|
|
62
62
|
this.subscriptionId = subscriptionId;
|
|
63
63
|
// Assigning values to Constant parameters
|
|
64
64
|
this.$host = options.$host || "https://management.azure.com";
|
|
65
|
-
this.apiVersion = options.apiVersion || "2025-
|
|
65
|
+
this.apiVersion = options.apiVersion || "2025-04-01-preview";
|
|
66
66
|
this.caCertificates = new CaCertificatesImpl(this);
|
|
67
67
|
this.channels = new ChannelsImpl(this);
|
|
68
68
|
this.clientGroups = new ClientGroupsImpl(this);
|
|
69
69
|
this.clients = new ClientsImpl(this);
|
|
70
70
|
this.domains = new DomainsImpl(this);
|
|
71
71
|
this.domainTopics = new DomainTopicsImpl(this);
|
|
72
|
+
this.domainTopicEventSubscriptions = new DomainTopicEventSubscriptionsImpl(this);
|
|
72
73
|
this.topicEventSubscriptions = new TopicEventSubscriptionsImpl(this);
|
|
73
74
|
this.domainEventSubscriptions = new DomainEventSubscriptionsImpl(this);
|
|
74
|
-
this.namespaceTopicEventSubscriptions =
|
|
75
|
-
new NamespaceTopicEventSubscriptionsImpl(this);
|
|
76
75
|
this.eventSubscriptions = new EventSubscriptionsImpl(this);
|
|
77
|
-
this.domainTopicEventSubscriptions = new DomainTopicEventSubscriptionsImpl(this);
|
|
78
76
|
this.systemTopicEventSubscriptions = new SystemTopicEventSubscriptionsImpl(this);
|
|
77
|
+
this.namespaceTopicEventSubscriptions =
|
|
78
|
+
new NamespaceTopicEventSubscriptionsImpl(this);
|
|
79
79
|
this.partnerTopicEventSubscriptions =
|
|
80
80
|
new PartnerTopicEventSubscriptionsImpl(this);
|
|
81
81
|
this.namespaces = new NamespacesImpl(this);
|
|
82
82
|
this.namespaceTopics = new NamespaceTopicsImpl(this);
|
|
83
83
|
this.operations = new OperationsImpl(this);
|
|
84
|
-
this.topics = new TopicsImpl(this);
|
|
85
84
|
this.partnerConfigurations = new PartnerConfigurationsImpl(this);
|
|
85
|
+
this.partnerDestinations = new PartnerDestinationsImpl(this);
|
|
86
86
|
this.partnerNamespaces = new PartnerNamespacesImpl(this);
|
|
87
87
|
this.partnerRegistrations = new PartnerRegistrationsImpl(this);
|
|
88
88
|
this.partnerTopics = new PartnerTopicsImpl(this);
|
|
89
|
+
this.networkSecurityPerimeterConfigurations =
|
|
90
|
+
new NetworkSecurityPerimeterConfigurationsImpl(this);
|
|
89
91
|
this.permissionBindings = new PermissionBindingsImpl(this);
|
|
90
92
|
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
|
91
93
|
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
|
|
92
94
|
this.systemTopics = new SystemTopicsImpl(this);
|
|
95
|
+
this.topics = new TopicsImpl(this);
|
|
93
96
|
this.extensionTopics = new ExtensionTopicsImpl(this);
|
|
94
97
|
this.topicSpaces = new TopicSpacesImpl(this);
|
|
95
98
|
this.topicTypes = new TopicTypesImpl(this);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventGridManagementClient.js","sourceRoot":"","sources":["../../src/eventGridManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,kBAAkB,EAClB,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,2BAA2B,EAC3B,4BAA4B,EAC5B,oCAAoC,EACpC,sBAAsB,EACtB,iCAAiC,EACjC,iCAAiC,EACjC,kCAAkC,EAClC,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,UAAU,EACV,yBAAyB,EACzB,qBAAqB,EACrB,wBAAwB,EACxB,iBAAiB,EACjB,sBAAsB,EACtB,8BAA8B,EAC9B,wBAAwB,EACxB,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAkC/B,MAAM,OAAO,yBAA0B,SAAQ,UAAU,CAAC,aAAa;IAqBrE,YACE,WAAqC,EACrC,uBAA0E,EAC1E,OAAiD;;QAEjD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,cAAkC,CAAC;QAEvC,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YAChD,cAAc,GAAG,uBAAuB,CAAC;QAC3C,CAAC;aAAM,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YACvD,OAAO,GAAG,uBAAuB,CAAC;QACpC,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAA4C;YAC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AAC,CAAC;QACvD,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAED,8GAA8G;IACtG,yBAAyB,CAAC,UAAmB;QACnD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO;QACT,CAAC;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CA+BF","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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n CaCertificatesImpl,\n ChannelsImpl,\n ClientGroupsImpl,\n ClientsImpl,\n DomainsImpl,\n DomainTopicsImpl,\n TopicEventSubscriptionsImpl,\n DomainEventSubscriptionsImpl,\n NamespaceTopicEventSubscriptionsImpl,\n EventSubscriptionsImpl,\n DomainTopicEventSubscriptionsImpl,\n SystemTopicEventSubscriptionsImpl,\n PartnerTopicEventSubscriptionsImpl,\n NamespacesImpl,\n NamespaceTopicsImpl,\n OperationsImpl,\n TopicsImpl,\n PartnerConfigurationsImpl,\n PartnerNamespacesImpl,\n PartnerRegistrationsImpl,\n PartnerTopicsImpl,\n PermissionBindingsImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n SystemTopicsImpl,\n ExtensionTopicsImpl,\n TopicSpacesImpl,\n TopicTypesImpl,\n VerifiedPartnersImpl,\n} from \"./operations/index.js\";\nimport {\n CaCertificates,\n Channels,\n ClientGroups,\n Clients,\n Domains,\n DomainTopics,\n TopicEventSubscriptions,\n DomainEventSubscriptions,\n NamespaceTopicEventSubscriptions,\n EventSubscriptions,\n DomainTopicEventSubscriptions,\n SystemTopicEventSubscriptions,\n PartnerTopicEventSubscriptions,\n Namespaces,\n NamespaceTopics,\n Operations,\n Topics,\n PartnerConfigurations,\n PartnerNamespaces,\n PartnerRegistrations,\n PartnerTopics,\n PermissionBindings,\n PrivateEndpointConnections,\n PrivateLinkResources,\n SystemTopics,\n ExtensionTopics,\n TopicSpaces,\n TopicTypes,\n VerifiedPartners,\n} from \"./operationsInterfaces/index.js\";\nimport { EventGridManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class EventGridManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the EventGridManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Subscription credentials that uniquely identify a Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: EventGridManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: EventGridManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: EventGridManagementClientOptionalParams | string,\n options?: EventGridManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: EventGridManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-eventgrid/14.2.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2025-02-15\";\n this.caCertificates = new CaCertificatesImpl(this);\n this.channels = new ChannelsImpl(this);\n this.clientGroups = new ClientGroupsImpl(this);\n this.clients = new ClientsImpl(this);\n this.domains = new DomainsImpl(this);\n this.domainTopics = new DomainTopicsImpl(this);\n this.topicEventSubscriptions = new TopicEventSubscriptionsImpl(this);\n this.domainEventSubscriptions = new DomainEventSubscriptionsImpl(this);\n this.namespaceTopicEventSubscriptions =\n new NamespaceTopicEventSubscriptionsImpl(this);\n this.eventSubscriptions = new EventSubscriptionsImpl(this);\n this.domainTopicEventSubscriptions = new DomainTopicEventSubscriptionsImpl(\n this,\n );\n this.systemTopicEventSubscriptions = new SystemTopicEventSubscriptionsImpl(\n this,\n );\n this.partnerTopicEventSubscriptions =\n new PartnerTopicEventSubscriptionsImpl(this);\n this.namespaces = new NamespacesImpl(this);\n this.namespaceTopics = new NamespaceTopicsImpl(this);\n this.operations = new OperationsImpl(this);\n this.topics = new TopicsImpl(this);\n this.partnerConfigurations = new PartnerConfigurationsImpl(this);\n this.partnerNamespaces = new PartnerNamespacesImpl(this);\n this.partnerRegistrations = new PartnerRegistrationsImpl(this);\n this.partnerTopics = new PartnerTopicsImpl(this);\n this.permissionBindings = new PermissionBindingsImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.systemTopics = new SystemTopicsImpl(this);\n this.extensionTopics = new ExtensionTopicsImpl(this);\n this.topicSpaces = new TopicSpacesImpl(this);\n this.topicTypes = new TopicTypesImpl(this);\n this.verifiedPartners = new VerifiedPartnersImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n caCertificates: CaCertificates;\n channels: Channels;\n clientGroups: ClientGroups;\n clients: Clients;\n domains: Domains;\n domainTopics: DomainTopics;\n topicEventSubscriptions: TopicEventSubscriptions;\n domainEventSubscriptions: DomainEventSubscriptions;\n namespaceTopicEventSubscriptions: NamespaceTopicEventSubscriptions;\n eventSubscriptions: EventSubscriptions;\n domainTopicEventSubscriptions: DomainTopicEventSubscriptions;\n systemTopicEventSubscriptions: SystemTopicEventSubscriptions;\n partnerTopicEventSubscriptions: PartnerTopicEventSubscriptions;\n namespaces: Namespaces;\n namespaceTopics: NamespaceTopics;\n operations: Operations;\n topics: Topics;\n partnerConfigurations: PartnerConfigurations;\n partnerNamespaces: PartnerNamespaces;\n partnerRegistrations: PartnerRegistrations;\n partnerTopics: PartnerTopics;\n permissionBindings: PermissionBindings;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n systemTopics: SystemTopics;\n extensionTopics: ExtensionTopics;\n topicSpaces: TopicSpaces;\n topicTypes: TopicTypes;\n verifiedPartners: VerifiedPartners;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"eventGridManagementClient.js","sourceRoot":"","sources":["../../src/eventGridManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,kBAAkB,EAClB,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,iCAAiC,EACjC,2BAA2B,EAC3B,4BAA4B,EAC5B,sBAAsB,EACtB,iCAAiC,EACjC,oCAAoC,EACpC,kCAAkC,EAClC,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,yBAAyB,EACzB,uBAAuB,EACvB,qBAAqB,EACrB,wBAAwB,EACxB,iBAAiB,EACjB,0CAA0C,EAC1C,sBAAsB,EACtB,8BAA8B,EAC9B,wBAAwB,EACxB,gBAAgB,EAChB,UAAU,EACV,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAoC/B,MAAM,OAAO,yBAA0B,SAAQ,UAAU,CAAC,aAAa;IAqBrE,YACE,WAAqC,EACrC,uBAA0E,EAC1E,OAAiD;;QAEjD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,cAAkC,CAAC;QAEvC,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YAChD,cAAc,GAAG,uBAAuB,CAAC;QAC3C,CAAC;aAAM,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YACvD,OAAO,GAAG,uBAAuB,CAAC;QACpC,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAA4C;YACxD,kB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Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n CaCertificatesImpl,\n ChannelsImpl,\n ClientGroupsImpl,\n ClientsImpl,\n DomainsImpl,\n DomainTopicsImpl,\n DomainTopicEventSubscriptionsImpl,\n TopicEventSubscriptionsImpl,\n DomainEventSubscriptionsImpl,\n EventSubscriptionsImpl,\n SystemTopicEventSubscriptionsImpl,\n NamespaceTopicEventSubscriptionsImpl,\n PartnerTopicEventSubscriptionsImpl,\n NamespacesImpl,\n NamespaceTopicsImpl,\n OperationsImpl,\n PartnerConfigurationsImpl,\n PartnerDestinationsImpl,\n PartnerNamespacesImpl,\n PartnerRegistrationsImpl,\n PartnerTopicsImpl,\n NetworkSecurityPerimeterConfigurationsImpl,\n PermissionBindingsImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n SystemTopicsImpl,\n TopicsImpl,\n ExtensionTopicsImpl,\n TopicSpacesImpl,\n TopicTypesImpl,\n VerifiedPartnersImpl,\n} from \"./operations/index.js\";\nimport {\n CaCertificates,\n Channels,\n ClientGroups,\n Clients,\n Domains,\n DomainTopics,\n DomainTopicEventSubscriptions,\n TopicEventSubscriptions,\n DomainEventSubscriptions,\n EventSubscriptions,\n SystemTopicEventSubscriptions,\n NamespaceTopicEventSubscriptions,\n PartnerTopicEventSubscriptions,\n Namespaces,\n NamespaceTopics,\n Operations,\n PartnerConfigurations,\n PartnerDestinations,\n PartnerNamespaces,\n PartnerRegistrations,\n PartnerTopics,\n NetworkSecurityPerimeterConfigurations,\n PermissionBindings,\n PrivateEndpointConnections,\n PrivateLinkResources,\n SystemTopics,\n Topics,\n ExtensionTopics,\n TopicSpaces,\n TopicTypes,\n VerifiedPartners,\n} from \"./operationsInterfaces/index.js\";\nimport { EventGridManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class EventGridManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the EventGridManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Subscription credentials that uniquely identify a Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: EventGridManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: EventGridManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: EventGridManagementClientOptionalParams | string,\n options?: EventGridManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: EventGridManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-eventgrid/15.0.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2025-04-01-preview\";\n this.caCertificates = new CaCertificatesImpl(this);\n this.channels = new ChannelsImpl(this);\n this.clientGroups = new ClientGroupsImpl(this);\n this.clients = new ClientsImpl(this);\n this.domains = new DomainsImpl(this);\n this.domainTopics = new DomainTopicsImpl(this);\n this.domainTopicEventSubscriptions = new DomainTopicEventSubscriptionsImpl(\n this,\n );\n this.topicEventSubscriptions = new TopicEventSubscriptionsImpl(this);\n this.domainEventSubscriptions = new DomainEventSubscriptionsImpl(this);\n this.eventSubscriptions = new EventSubscriptionsImpl(this);\n this.systemTopicEventSubscriptions = new SystemTopicEventSubscriptionsImpl(\n this,\n );\n this.namespaceTopicEventSubscriptions =\n new NamespaceTopicEventSubscriptionsImpl(this);\n this.partnerTopicEventSubscriptions =\n new PartnerTopicEventSubscriptionsImpl(this);\n this.namespaces = new NamespacesImpl(this);\n this.namespaceTopics = new NamespaceTopicsImpl(this);\n this.operations = new OperationsImpl(this);\n this.partnerConfigurations = new PartnerConfigurationsImpl(this);\n this.partnerDestinations = new PartnerDestinationsImpl(this);\n this.partnerNamespaces = new PartnerNamespacesImpl(this);\n this.partnerRegistrations = new PartnerRegistrationsImpl(this);\n this.partnerTopics = new PartnerTopicsImpl(this);\n this.networkSecurityPerimeterConfigurations =\n new NetworkSecurityPerimeterConfigurationsImpl(this);\n this.permissionBindings = new PermissionBindingsImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.systemTopics = new SystemTopicsImpl(this);\n this.topics = new TopicsImpl(this);\n this.extensionTopics = new ExtensionTopicsImpl(this);\n this.topicSpaces = new TopicSpacesImpl(this);\n this.topicTypes = new TopicTypesImpl(this);\n this.verifiedPartners = new VerifiedPartnersImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n caCertificates: CaCertificates;\n channels: Channels;\n clientGroups: ClientGroups;\n clients: Clients;\n domains: Domains;\n domainTopics: DomainTopics;\n domainTopicEventSubscriptions: DomainTopicEventSubscriptions;\n topicEventSubscriptions: TopicEventSubscriptions;\n domainEventSubscriptions: DomainEventSubscriptions;\n eventSubscriptions: EventSubscriptions;\n systemTopicEventSubscriptions: SystemTopicEventSubscriptions;\n namespaceTopicEventSubscriptions: NamespaceTopicEventSubscriptions;\n partnerTopicEventSubscriptions: PartnerTopicEventSubscriptions;\n namespaces: Namespaces;\n namespaceTopics: NamespaceTopics;\n operations: Operations;\n partnerConfigurations: PartnerConfigurations;\n partnerDestinations: PartnerDestinations;\n partnerNamespaces: PartnerNamespaces;\n partnerRegistrations: PartnerRegistrations;\n partnerTopics: PartnerTopics;\n networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations;\n permissionBindings: PermissionBindings;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n systemTopics: SystemTopics;\n topics: Topics;\n extensionTopics: ExtensionTopics;\n topicSpaces: TopicSpaces;\n topicTypes: TopicTypes;\n verifiedPartners: VerifiedPartners;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAKH,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,UAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,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 { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
|