@azure/arm-postgresql-flexible 8.0.0-alpha.20250217.1 → 8.0.0-alpha.20250219.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
@@ -47,24 +47,35 @@ You will also need to **register a new AAD application and grant access to Azure
47
47
 
48
48
  For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
49
49
 
50
- ```javascript
51
- const { PostgreSQLManagementFlexibleServerClient } = require("@azure/arm-postgresql-flexible");
52
- const { DefaultAzureCredential } = require("@azure/identity");
53
- // For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
50
+ Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
51
+
52
+ ```ts snippet:ReadmeSampleCreateClient_Node
53
+ import { PostgreSQLManagementFlexibleServerClient } from "@azure/arm-postgresql-flexible";
54
+ import { DefaultAzureCredential } from "@azure/identity";
54
55
 
55
56
  const subscriptionId = "00000000-0000-0000-0000-000000000000";
56
- const client = new PostgreSQLManagementFlexibleServerClient(new DefaultAzureCredential(), subscriptionId);
57
-
58
- // For client-side applications running in the browser, use this code instead:
59
- // const credential = new InteractiveBrowserCredential({
60
- // tenantId: "<YOUR_TENANT_ID>",
61
- // clientId: "<YOUR_CLIENT_ID>"
62
- // });
63
- // const client = new PostgreSQLManagementFlexibleServerClient(credential, subscriptionId);
57
+ const client = new PostgreSQLManagementFlexibleServerClient(
58
+ new DefaultAzureCredential(),
59
+ subscriptionId,
60
+ );
64
61
  ```
65
62
 
63
+ For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
64
+
65
+ ```ts snippet:ReadmeSampleCreateClient_Browser
66
+ import { InteractiveBrowserCredential } from "@azure/identity";
67
+ import { PostgreSQLManagementFlexibleServerClient } from "@azure/arm-postgresql-flexible";
68
+
69
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
70
+ const credential = new InteractiveBrowserCredential({
71
+ tenantId: "<YOUR_TENANT_ID>",
72
+ clientId: "<YOUR_CLIENT_ID>",
73
+ });
74
+ const client = new PostgreSQLManagementFlexibleServerClient(credential, subscriptionId);
75
+ ```
66
76
 
67
77
  ### JavaScript Bundle
78
+
68
79
  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).
69
80
 
70
81
  ## Key concepts
@@ -79,8 +90,9 @@ To use this client library in the browser, first you need to use a bundler. For
79
90
 
80
91
  Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
81
92
 
82
- ```javascript
83
- const { setLogLevel } = require("@azure/logger");
93
+ ```ts snippet:SetLogLevel
94
+ import { setLogLevel } from "@azure/logger";
95
+
84
96
  setLogLevel("info");
85
97
  ```
86
98
 
@@ -98,8 +110,6 @@ If you'd like to contribute to this library, please read the [contributing guide
98
110
 
99
111
  - [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
100
112
 
101
-
102
-
103
113
  [azure_cli]: https://learn.microsoft.com/cli/azure
104
114
  [azure_sub]: https://azure.microsoft.com/free/
105
115
  [azure_sub]: https://azure.microsoft.com/free/
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.49.2"
8
+ "packageVersion": "7.50.0"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -3,25 +3,26 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for PostgreSQLManagementFlexibleServerClient.",
6
- "version": "8.0.0-alpha.20250217.1",
6
+ "version": "8.0.0-alpha.20250219.1",
7
7
  "engines": {
8
8
  "node": ">=18.0.0"
9
9
  },
10
10
  "dependencies": {
11
11
  "@azure/abort-controller": "^2.1.2",
12
- "@azure/core-auth": "^1.6.0",
13
- "@azure/core-client": "^1.7.0",
12
+ "@azure/core-auth": "^1.9.0",
13
+ "@azure/core-client": "^1.9.2",
14
14
  "@azure/core-lro": "^2.5.4",
15
- "@azure/core-paging": "^1.2.0",
16
- "@azure/core-rest-pipeline": "^1.14.0",
17
- "tslib": "^2.2.0"
15
+ "@azure/core-paging": "^1.6.2",
16
+ "@azure/core-rest-pipeline": "^1.19.0",
17
+ "tslib": "^2.8.1"
18
18
  },
19
19
  "keywords": [
20
20
  "node",
21
21
  "azure",
22
22
  "typescript",
23
23
  "browser",
24
- "isomorphic"
24
+ "isomorphic",
25
+ "cloud"
25
26
  ],
26
27
  "license": "MIT",
27
28
  "main": "./dist/commonjs/index.js",
@@ -32,20 +33,17 @@
32
33
  "@azure-tools/test-recorder": ">=4.1.0-alpha <4.1.0-alphb",
33
34
  "@azure-tools/test-utils-vitest": ">=1.0.0-alpha <1.0.0-alphb",
34
35
  "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
35
- "@azure/identity": "^4.2.1",
36
+ "@azure/identity": "^4.7.0",
37
+ "@azure/logger": "^1.1.4",
36
38
  "@types/node": "^18.0.0",
37
- "@vitest/browser": "^3.0.3",
38
- "@vitest/coverage-istanbul": "^3.0.3",
39
+ "@vitest/browser": "^3.0.5",
40
+ "@vitest/coverage-istanbul": "^3.0.5",
39
41
  "dotenv": "^16.0.0",
40
- "playwright": "^1.49.1",
41
- "tsx": "^4.7.1",
42
- "typescript": "~5.6.2",
43
- "vitest": "^3.0.3"
44
- },
45
- "repository": {
46
- "type": "git",
47
- "url": "https://github.com/Azure/azure-sdk-for-js.git"
42
+ "playwright": "^1.50.1",
43
+ "typescript": "~5.7.2",
44
+ "vitest": "^3.0.5"
48
45
  },
46
+ "repository": "github:Azure/azure-sdk-for-js",
49
47
  "bugs": {
50
48
  "url": "https://github.com/Azure/azure-sdk-for-js/issues"
51
49
  },
@@ -80,7 +78,7 @@
80
78
  "unit-test": "npm run unit-test:node && npm run unit-test:browser",
81
79
  "unit-test:browser": "echo skipped",
82
80
  "unit-test:node": "dev-tool run test:vitest",
83
- "update-snippets": "echo skipped"
81
+ "update-snippets": "dev-tool run update-snippets"
84
82
  },
85
83
  "sideEffects": false,
86
84
  "//metadata": {