@azure/arm-servicebus 5.0.0-beta.1 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -11
- package/README.md +8 -3
- package/dist/index.js +1809 -2812
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/{index.d.ts → src/index.d.ts} +0 -1
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/{index.js → src/index.js} +0 -1
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/{lroImpl.d.ts → src/lroImpl.d.ts} +0 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/{lroImpl.js → src/lroImpl.js} +0 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/{models → src/models}/index.d.ts +418 -474
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/{models → src/models}/index.js +19 -11
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/{models → src/models}/mappers.d.ts +18 -26
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/{models → src/models}/mappers.js +580 -663
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/{models → src/models}/parameters.d.ts +12 -18
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/{models → src/models}/parameters.js +54 -106
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/{operations → src/operations}/disasterRecoveryConfigs.d.ts +2 -3
- package/dist-esm/src/operations/disasterRecoveryConfigs.d.ts.map +1 -0
- package/dist-esm/{operations → src/operations}/disasterRecoveryConfigs.js +27 -28
- package/dist-esm/src/operations/disasterRecoveryConfigs.js.map +1 -0
- package/dist-esm/{operationsInterfaces → src/operations}/index.d.ts +3 -6
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/{operations → src/operations}/index.js +3 -6
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/{operations → src/operations}/migrationConfigs.d.ts +2 -3
- package/dist-esm/src/operations/migrationConfigs.d.ts.map +1 -0
- package/dist-esm/{operations → src/operations}/migrationConfigs.js +15 -16
- package/dist-esm/src/operations/migrationConfigs.js.map +1 -0
- package/dist-esm/{operationsInterfaces → src/operations}/namespaces.d.ts +52 -55
- package/dist-esm/src/operations/namespaces.d.ts.map +1 -0
- package/dist-esm/{operations → src/operations}/namespaces.js +89 -554
- package/dist-esm/src/operations/namespaces.js.map +1 -0
- package/dist-esm/{operations → src/operations}/operations.d.ts +2 -3
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/{operations → src/operations}/operations.js +0 -1
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/{operations → src/operations}/privateEndpointConnections.d.ts +2 -3
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/{operations → src/operations}/privateEndpointConnections.js +11 -12
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/{operations → src/operations}/privateLinkResources.d.ts +2 -2
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/{operations → src/operations}/privateLinkResources.js +2 -2
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/{operations → src/operations}/queues.d.ts +2 -3
- package/dist-esm/src/operations/queues.d.ts.map +1 -0
- package/dist-esm/{operations → src/operations}/queues.js +27 -28
- package/dist-esm/src/operations/queues.js.map +1 -0
- package/dist-esm/{operations → src/operations}/rules.d.ts +2 -3
- package/dist-esm/src/operations/rules.d.ts.map +1 -0
- package/dist-esm/{operations → src/operations}/rules.js +11 -12
- package/dist-esm/src/operations/rules.js.map +1 -0
- package/dist-esm/{operations → src/operations}/subscriptions.d.ts +2 -3
- package/dist-esm/src/operations/subscriptions.d.ts.map +1 -0
- package/dist-esm/{operations → src/operations}/subscriptions.js +11 -12
- package/dist-esm/src/operations/subscriptions.js.map +1 -0
- package/dist-esm/{operations → src/operations}/topics.d.ts +2 -3
- package/dist-esm/src/operations/topics.d.ts.map +1 -0
- package/dist-esm/{operations → src/operations}/topics.js +27 -28
- package/dist-esm/src/operations/topics.js.map +1 -0
- package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/disasterRecoveryConfigs.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/disasterRecoveryConfigs.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/disasterRecoveryConfigs.js +9 -0
- package/dist-esm/src/operationsInterfaces/disasterRecoveryConfigs.js.map +1 -0
- package/dist-esm/{operations → src/operationsInterfaces}/index.d.ts +3 -6
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/index.js +3 -6
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/migrationConfigs.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/migrationConfigs.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/migrationConfigs.js +9 -0
- package/dist-esm/src/operationsInterfaces/migrationConfigs.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/namespaces.d.ts +145 -0
- package/dist-esm/src/operationsInterfaces/namespaces.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/namespaces.js +9 -0
- package/dist-esm/src/operationsInterfaces/namespaces.js.map +1 -0
- package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/operations.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/privateEndpointConnections.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/{operationsInterfaces/regions.js → src/operationsInterfaces/privateEndpointConnections.js} +2 -2
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/privateLinkResources.d.ts +0 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/privateLinkResources.js +0 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/queues.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/queues.d.ts.map +1 -0
- package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/queues.js +1 -1
- package/dist-esm/src/operationsInterfaces/queues.js.map +1 -0
- package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/rules.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/rules.d.ts.map +1 -0
- package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/rules.js +1 -1
- package/dist-esm/src/operationsInterfaces/rules.js.map +1 -0
- package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/subscriptions.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/subscriptions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/subscriptions.js +9 -0
- package/dist-esm/src/operationsInterfaces/subscriptions.js.map +1 -0
- package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/topics.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/topics.d.ts.map +1 -0
- package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/topics.js +1 -1
- package/dist-esm/src/operationsInterfaces/topics.js.map +1 -0
- package/dist-esm/{serviceBusManagementClient.d.ts → src/serviceBusManagementClient.d.ts} +9 -9
- package/dist-esm/src/serviceBusManagementClient.d.ts.map +1 -0
- package/dist-esm/{serviceBusManagementClientContext.js → src/serviceBusManagementClient.js} +16 -5
- package/dist-esm/src/serviceBusManagementClient.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +4 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +188 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +19 -25
- package/review/arm-servicebus.api.md +90 -248
- package/src/index.ts +0 -1
- package/src/models/index.ts +456 -552
- package/src/models/mappers.ts +576 -667
- package/src/models/parameters.ts +60 -121
- package/src/operations/disasterRecoveryConfigs.ts +30 -31
- package/src/operations/index.ts +3 -6
- package/src/operations/migrationConfigs.ts +18 -19
- package/src/operations/namespaces.ts +108 -745
- package/src/operations/operations.ts +3 -4
- package/src/operations/privateEndpointConnections.ts +14 -15
- package/src/operations/privateLinkResources.ts +5 -5
- package/src/operations/queues.ts +30 -31
- package/src/operations/rules.ts +14 -15
- package/src/operations/subscriptions.ts +14 -15
- package/src/operations/topics.ts +30 -31
- package/src/operationsInterfaces/disasterRecoveryConfigs.ts +0 -1
- package/src/operationsInterfaces/index.ts +3 -6
- package/src/operationsInterfaces/migrationConfigs.ts +0 -1
- package/src/operationsInterfaces/namespaces.ts +21 -155
- package/src/operationsInterfaces/operations.ts +0 -1
- package/src/operationsInterfaces/privateEndpointConnections.ts +0 -1
- package/src/operationsInterfaces/queues.ts +0 -1
- package/src/operationsInterfaces/rules.ts +0 -1
- package/src/operationsInterfaces/subscriptions.ts +0 -1
- package/src/operationsInterfaces/topics.ts +0 -1
- package/src/serviceBusManagementClient.ts +58 -29
- package/tsconfig.json +1 -1
- package/types/arm-servicebus.d.ts +188 -398
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/index.d.ts.map +0 -1
- package/dist-esm/index.js.map +0 -1
- package/dist-esm/lroImpl.d.ts.map +0 -1
- package/dist-esm/lroImpl.js.map +0 -1
- package/dist-esm/models/index.d.ts.map +0 -1
- package/dist-esm/models/index.js.map +0 -1
- package/dist-esm/models/mappers.d.ts.map +0 -1
- package/dist-esm/models/mappers.js.map +0 -1
- package/dist-esm/models/parameters.d.ts.map +0 -1
- package/dist-esm/models/parameters.js.map +0 -1
- package/dist-esm/operations/disasterRecoveryConfigs.d.ts.map +0 -1
- package/dist-esm/operations/disasterRecoveryConfigs.js.map +0 -1
- package/dist-esm/operations/eventHubs.d.ts +0 -39
- package/dist-esm/operations/eventHubs.d.ts.map +0 -1
- package/dist-esm/operations/eventHubs.js +0 -138
- package/dist-esm/operations/eventHubs.js.map +0 -1
- package/dist-esm/operations/index.d.ts.map +0 -1
- package/dist-esm/operations/index.js.map +0 -1
- package/dist-esm/operations/migrationConfigs.d.ts.map +0 -1
- package/dist-esm/operations/migrationConfigs.js.map +0 -1
- package/dist-esm/operations/namespaces.d.ts +0 -323
- package/dist-esm/operations/namespaces.d.ts.map +0 -1
- package/dist-esm/operations/namespaces.js.map +0 -1
- package/dist-esm/operations/operations.d.ts.map +0 -1
- package/dist-esm/operations/operations.js.map +0 -1
- package/dist-esm/operations/premiumMessagingRegionsOperations.d.ts +0 -33
- package/dist-esm/operations/premiumMessagingRegionsOperations.d.ts.map +0 -1
- package/dist-esm/operations/premiumMessagingRegionsOperations.js +0 -125
- package/dist-esm/operations/premiumMessagingRegionsOperations.js.map +0 -1
- package/dist-esm/operations/privateEndpointConnections.d.ts.map +0 -1
- package/dist-esm/operations/privateEndpointConnections.js.map +0 -1
- package/dist-esm/operations/privateLinkResources.d.ts.map +0 -1
- package/dist-esm/operations/privateLinkResources.js.map +0 -1
- package/dist-esm/operations/queues.d.ts.map +0 -1
- package/dist-esm/operations/queues.js.map +0 -1
- package/dist-esm/operations/regions.d.ts +0 -36
- package/dist-esm/operations/regions.d.ts.map +0 -1
- package/dist-esm/operations/regions.js +0 -129
- package/dist-esm/operations/regions.js.map +0 -1
- package/dist-esm/operations/rules.d.ts.map +0 -1
- package/dist-esm/operations/rules.js.map +0 -1
- package/dist-esm/operations/subscriptions.d.ts.map +0 -1
- package/dist-esm/operations/subscriptions.js.map +0 -1
- package/dist-esm/operations/topics.d.ts.map +0 -1
- package/dist-esm/operations/topics.js.map +0 -1
- package/dist-esm/operationsInterfaces/disasterRecoveryConfigs.d.ts.map +0 -1
- package/dist-esm/operationsInterfaces/disasterRecoveryConfigs.js +0 -9
- package/dist-esm/operationsInterfaces/disasterRecoveryConfigs.js.map +0 -1
- package/dist-esm/operationsInterfaces/eventHubs.d.ts +0 -14
- package/dist-esm/operationsInterfaces/eventHubs.d.ts.map +0 -1
- package/dist-esm/operationsInterfaces/eventHubs.js +0 -9
- package/dist-esm/operationsInterfaces/eventHubs.js.map +0 -1
- package/dist-esm/operationsInterfaces/index.d.ts.map +0 -1
- package/dist-esm/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/operationsInterfaces/migrationConfigs.d.ts.map +0 -1
- package/dist-esm/operationsInterfaces/migrationConfigs.js +0 -9
- package/dist-esm/operationsInterfaces/migrationConfigs.js.map +0 -1
- package/dist-esm/operationsInterfaces/namespaces.d.ts.map +0 -1
- package/dist-esm/operationsInterfaces/namespaces.js +0 -9
- package/dist-esm/operationsInterfaces/namespaces.js.map +0 -1
- package/dist-esm/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist-esm/operationsInterfaces/operations.js +0 -9
- package/dist-esm/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/operationsInterfaces/premiumMessagingRegionsOperations.d.ts +0 -12
- package/dist-esm/operationsInterfaces/premiumMessagingRegionsOperations.d.ts.map +0 -1
- package/dist-esm/operationsInterfaces/premiumMessagingRegionsOperations.js +0 -9
- package/dist-esm/operationsInterfaces/premiumMessagingRegionsOperations.js.map +0 -1
- package/dist-esm/operationsInterfaces/privateEndpointConnections.d.ts.map +0 -1
- package/dist-esm/operationsInterfaces/privateEndpointConnections.js +0 -9
- package/dist-esm/operationsInterfaces/privateEndpointConnections.js.map +0 -1
- package/dist-esm/operationsInterfaces/privateLinkResources.d.ts.map +0 -1
- package/dist-esm/operationsInterfaces/privateLinkResources.js.map +0 -1
- package/dist-esm/operationsInterfaces/queues.d.ts.map +0 -1
- package/dist-esm/operationsInterfaces/queues.js.map +0 -1
- package/dist-esm/operationsInterfaces/regions.d.ts +0 -13
- package/dist-esm/operationsInterfaces/regions.d.ts.map +0 -1
- package/dist-esm/operationsInterfaces/regions.js.map +0 -1
- package/dist-esm/operationsInterfaces/rules.d.ts.map +0 -1
- package/dist-esm/operationsInterfaces/rules.js.map +0 -1
- package/dist-esm/operationsInterfaces/subscriptions.d.ts.map +0 -1
- package/dist-esm/operationsInterfaces/subscriptions.js +0 -9
- package/dist-esm/operationsInterfaces/subscriptions.js.map +0 -1
- package/dist-esm/operationsInterfaces/topics.d.ts.map +0 -1
- package/dist-esm/operationsInterfaces/topics.js.map +0 -1
- package/dist-esm/serviceBusManagementClient.d.ts.map +0 -1
- package/dist-esm/serviceBusManagementClient.js +0 -35
- package/dist-esm/serviceBusManagementClient.js.map +0 -1
- package/dist-esm/serviceBusManagementClientContext.d.ts +0 -17
- package/dist-esm/serviceBusManagementClientContext.d.ts.map +0 -1
- package/dist-esm/serviceBusManagementClientContext.js.map +0 -1
- package/src/operations/eventHubs.ts +0 -190
- package/src/operations/premiumMessagingRegionsOperations.ts +0 -144
- package/src/operations/regions.ts +0 -155
- package/src/operationsInterfaces/eventHubs.ts +0 -27
- package/src/operationsInterfaces/premiumMessagingRegionsOperations.ts +0 -26
- package/src/operationsInterfaces/regions.ts +0 -28
- package/src/serviceBusManagementClientContext.ts +0 -71
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
# Release History
|
|
2
|
+
|
|
3
|
+
## 5.0.0 (2021-12-14)
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
The package of @azure/arm-servicebus is using our next generation design principles since version 5.0.0-beta.2, which contains breaking changes.
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
**Noteworthy changes and features**
|
|
12
|
-
- Authentication: The packages `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` are no longer supported. Use package [@azure/identity](https://www.npmjs.com/package/@azure/identity) instead. Select a credential from Azure Identity examples based on the authentication method of your choice.
|
|
13
|
-
- Callbacks: Method overloads that used callbacks have been removed and the use of promises is encouraged instead.
|
|
14
|
-
- List operations now return an iterable result that follows the `PagedAsyncIterableIterator` interface as opposed to the previous model where you had to make a new request using the link to the next page.
|
|
15
|
-
- Long running operations i.e. the Lro related object returned by methods whose names started with `begin`, now uses `pollUntilDone` to check whether the request is finished, instead of `pollUntilFinished`. To get the final result, use the corresponding method that will have the suffix `AndWait`.
|
|
16
|
-
- The SDK only supports ECMAScript 2015 (ES6) and beyond, all projects that referenced this SDK should be upgraded to use ES6.
|
|
11
|
+
To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure ServiceBusManagement client.
|
|
4
4
|
|
|
5
|
-
Azure Service Bus client for managing Namespace
|
|
5
|
+
Azure Service Bus client for managing Namespace
|
|
6
6
|
|
|
7
7
|
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/servicebus/arm-servicebus) |
|
|
8
8
|
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-servicebus) |
|
|
@@ -33,9 +33,9 @@ npm install @azure/arm-servicebus
|
|
|
33
33
|
To create a client object to access the Azure ServiceBusManagement API, you will need the `endpoint` of your Azure ServiceBusManagement resource and a `credential`. The Azure ServiceBusManagement client can use Azure Active Directory credentials to authenticate.
|
|
34
34
|
You can find the endpoint for your Azure ServiceBusManagement resource in the [Azure Portal][azure_portal].
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
41
|
npm install @azure/identity
|
|
@@ -45,6 +45,7 @@ You will also need to **register a new AAD application and grant access to Azure
|
|
|
45
45
|
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
|
|
46
46
|
|
|
47
47
|
For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
|
|
48
|
+
|
|
48
49
|
```javascript
|
|
49
50
|
const { ServiceBusManagementClient } = require("@azure/arm-servicebus");
|
|
50
51
|
const { DefaultAzureCredential } = require("@azure/identity");
|
|
@@ -52,6 +53,10 @@ const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
|
52
53
|
const client = new ServiceBusManagementClient(new DefaultAzureCredential(), subscriptionId);
|
|
53
54
|
```
|
|
54
55
|
|
|
56
|
+
|
|
57
|
+
### JavaScript Bundle
|
|
58
|
+
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
|
|
59
|
+
|
|
55
60
|
## Key concepts
|
|
56
61
|
|
|
57
62
|
### ServiceBusManagementClient
|