@azure/arm-locks 2.1.1-alpha.20250417.1 → 2.1.1-alpha.20250421.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 CHANGED
@@ -51,13 +51,25 @@ For more information about how to create an Azure AD Application check out [this
51
51
  Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
52
52
 
53
53
  ```ts snippet:ReadmeSampleCreateClient_Node
54
+ import { ManagementLockClient } from "@azure/arm-locks";
55
+ import { DefaultAzureCredential } from "@azure/identity";
54
56
 
57
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
58
+ const client = new ManagementLockClient(new DefaultAzureCredential(), subscriptionId);
55
59
  ```
56
60
 
57
61
  For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
58
62
 
59
63
  ```ts snippet:ReadmeSampleCreateClient_Browser
60
-
64
+ import { InteractiveBrowserCredential } from "@azure/identity";
65
+ import { ManagementLockClient } from "@azure/arm-locks";
66
+
67
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
68
+ const credential = new InteractiveBrowserCredential({
69
+ tenantId: "<YOUR_TENANT_ID>",
70
+ clientId: "<YOUR_CLIENT_ID>",
71
+ });
72
+ const client = new ManagementLockClient(credential, subscriptionId);
61
73
  ```
62
74
 
63
75
  ### JavaScript Bundle
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.52.3"
8
+ "packageVersion": "7.52.4"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for ManagementLockClient.",
6
- "version": "2.1.1-alpha.20250417.1",
6
+ "version": "2.1.1-alpha.20250421.1",
7
7
  "engines": {
8
8
  "node": ">=18.0.0"
9
9
  },