Skip to content

Commit 6b00cad

Browse files
author
SDKAuto
committed
CodeGen from PR 16532 in Azure/azure-rest-api-specs
Merge a35a3aa3bc979dda342cb7e779bdee985e6ee812 into 1e3988d335713aff2d2971e58a412c527b3adc19
1 parent 8790454 commit 6b00cad

35 files changed

+3663
-2805
lines changed

sdk/servicebus/arm-servicebus/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020 Microsoft
3+
Copyright (c) 2021 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/servicebus/arm-servicebus/README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
## Azure ServiceBusManagementClient SDK for JavaScript
22

3-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for ServiceBusManagementClient.
3+
This package contains an isomorphic SDK (runs both in node.js and in browsers) for ServiceBusManagementClient.
44

55
### Currently supported environments
66

77
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
8-
- Latest versions of Safari, Chrome, Edge, and Firefox.
8+
- Latest versions of Safari, Chrome, Edge and Firefox.
99

1010
### Prerequisites
1111

@@ -21,7 +21,6 @@ Install both packages using the below command:
2121
```bash
2222
npm install --save @azure/arm-servicebus @azure/identity
2323
```
24-
2524
> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features.
2625
If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.
2726

@@ -37,8 +36,7 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/
3736

3837
In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
3938
Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started.
40-
41-
#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript.
39+
#### nodejs - Authentication, client creation, and list namespaces as an example written in JavaScript.
4240

4341
##### Sample code
4442

@@ -51,8 +49,7 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
5149
// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead.
5250
const creds = new DefaultAzureCredential();
5351
const client = new ServiceBusManagementClient(creds, subscriptionId);
54-
55-
client.operations.list().then((result) => {
52+
client.namespaces.list().then((result) => {
5653
console.log("The result is:");
5754
console.log(result);
5855
}).catch((err) => {
@@ -61,7 +58,7 @@ client.operations.list().then((result) => {
6158
});
6259
```
6360

64-
#### browser - Authentication, client creation, and list operations as an example written in JavaScript.
61+
#### browser - Authentication, client creation, and list namespaces as an example written in JavaScript.
6562

6663
In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser.
6764
- See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser.
@@ -86,10 +83,10 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
8683
const credential = new InteractiveBrowserCredential(
8784
{
8885
clientId: "<client id for your Azure AD app>",
89-
tenantId: "<optional tenant for your organization>"
86+
tenant: "<optional tenant for your organization>"
9087
});
9188
const client = new Azure.ArmServicebus.ServiceBusManagementClient(creds, subscriptionId);
92-
client.operations.list().then((result) => {
89+
client.namespaces.list().then((result) => {
9390
console.log("The result is:");
9491
console.log(result);
9592
}).catch((err) => {

sdk/servicebus/arm-servicebus/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"rollup-plugin-sourcemaps": "^0.4.2",
2828
"uglify-js": "^3.6.0"
2929
},
30-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/servicebus/arm-servicebus",
30+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/servicebus/arm-servicebus",
3131
"repository": {
3232
"type": "git",
3333
"url": "https://github.com/Azure/azure-sdk-for-js.git"

sdk/servicebus/arm-servicebus/rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const config = {
2121
"@azure/ms-rest-azure-js": "msRestAzure"
2222
},
2323
banner: `/*
24-
* Copyright (c) Microsoft Corporation. All rights reserved.
25-
* Licensed under the MIT License. See License.txt in the project root for license information.
24+
* Copyright (c) Microsoft Corporation.
25+
* Licensed under the MIT License.
2626
*
2727
* Code generated by Microsoft (R) AutoRest Code Generator.
2828
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
@@ -12,25 +12,31 @@ export {
1212
ArmDisasterRecovery,
1313
ArmDisasterRecoveryListResult,
1414
BaseResource,
15-
CaptureDescription,
1615
CheckNameAvailability,
1716
CheckNameAvailabilityResult,
17+
ConnectionState,
1818
CorrelationFilter,
19-
Destination,
19+
Encryption,
20+
ErrorAdditionalInfo,
2021
ErrorResponse,
21-
Eventhub,
22+
ErrorResponseError,
23+
FailoverProperties,
24+
Identity,
25+
KeyVaultProperties,
2226
MessageCountDetails,
2327
MigrationConfigProperties,
2428
NetworkRuleSet,
2529
NWRuleSetIpRules,
2630
NWRuleSetVirtualNetworkRules,
27-
PremiumMessagingRegions,
28-
PremiumMessagingRegionsProperties,
31+
PrivateEndpoint,
32+
PrivateEndpointConnection,
33+
ProxyResource,
2934
Resource,
3035
ResourceNamespacePatch,
3136
Rule,
3237
SBAuthorizationRule,
3338
SBAuthorizationRuleListResult,
39+
SBClientAffineProperties,
3440
SBNamespace,
3541
SBNamespaceUpdateParameters,
3642
SBQueue,
@@ -40,5 +46,8 @@ export {
4046
SqlFilter,
4147
SqlRuleAction,
4248
Subnet,
43-
TrackedResource
49+
SystemData,
50+
TrackedResource,
51+
UserAssignedIdentity,
52+
UserAssignedIdentityProperties
4453
} from "../models/mappers";

0 commit comments

Comments
 (0)