@azure/arm-devopsinfrastructure 1.0.0-alpha.20250129.1 → 1.0.0-alpha.20250130.2
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 +21 -12
- package/package.json +42 -39
package/README.md
CHANGED
|
@@ -47,20 +47,28 @@ 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
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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 { DevOpsInfrastructureClient } from "@azure/arm-devopsinfrastructure";
|
|
54
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
54
55
|
|
|
55
56
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
56
57
|
const client = new DevOpsInfrastructureClient(new DefaultAzureCredential(), subscriptionId);
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
|
|
57
61
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
```ts snippet:ReadmeSampleCreateClient_Browser
|
|
63
|
+
import { InteractiveBrowserCredential } from "@azure/identity";
|
|
64
|
+
import { DevOpsInfrastructureClient } from "@azure/arm-devopsinfrastructure";
|
|
65
|
+
|
|
66
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
67
|
+
const credential = new InteractiveBrowserCredential({
|
|
68
|
+
tenantId: "<YOUR_TENANT_ID>",
|
|
69
|
+
clientId: "<YOUR_CLIENT_ID>",
|
|
70
|
+
});
|
|
71
|
+
const client = new DevOpsInfrastructureClient(credential, subscriptionId);
|
|
64
72
|
```
|
|
65
73
|
|
|
66
74
|
### JavaScript Bundle
|
|
@@ -79,8 +87,9 @@ To use this client library in the browser, first you need to use a bundler. For
|
|
|
79
87
|
|
|
80
88
|
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
89
|
|
|
82
|
-
```
|
|
83
|
-
|
|
90
|
+
```ts snippet:SetLogLevel
|
|
91
|
+
import { setLogLevel } from "@azure/logger";
|
|
92
|
+
|
|
84
93
|
setLogLevel("info");
|
|
85
94
|
```
|
|
86
95
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/arm-devopsinfrastructure",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.20250130.2",
|
|
4
4
|
"description": "A generated SDK for DevOpsInfrastructureClient.",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"autoPublish": false,
|
|
10
10
|
"tshy": {
|
|
11
|
+
"project": "./tsconfig.src.json",
|
|
11
12
|
"exports": {
|
|
12
13
|
"./package.json": "./package.json",
|
|
13
14
|
".": "./src/index.ts",
|
|
@@ -21,8 +22,7 @@
|
|
|
21
22
|
"browser",
|
|
22
23
|
"react-native"
|
|
23
24
|
],
|
|
24
|
-
"selfLink": false
|
|
25
|
-
"project": "./tsconfig.src.json"
|
|
25
|
+
"selfLink": false
|
|
26
26
|
},
|
|
27
27
|
"type": "module",
|
|
28
28
|
"keywords": [
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"author": "Microsoft Corporation",
|
|
37
37
|
"license": "MIT",
|
|
38
38
|
"files": [
|
|
39
|
-
"dist",
|
|
39
|
+
"dist/",
|
|
40
40
|
"README.md",
|
|
41
41
|
"LICENSE",
|
|
42
|
-
"review
|
|
42
|
+
"review/",
|
|
43
43
|
"CHANGELOG.md"
|
|
44
44
|
],
|
|
45
45
|
"sdk-type": "mgmt",
|
|
@@ -58,55 +58,56 @@
|
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@azure/core-util": "^1.9.2",
|
|
62
61
|
"@azure-rest/core-client": "^2.3.1",
|
|
63
|
-
"@azure/
|
|
64
|
-
"@azure/core-
|
|
65
|
-
"@azure/logger": "^1.0.0",
|
|
66
|
-
"tslib": "^2.6.2",
|
|
62
|
+
"@azure/abort-controller": "^2.1.2",
|
|
63
|
+
"@azure/core-auth": "^1.9.0",
|
|
67
64
|
"@azure/core-lro": "^3.1.0",
|
|
68
|
-
"@azure/
|
|
65
|
+
"@azure/core-rest-pipeline": "^1.18.2",
|
|
66
|
+
"@azure/core-util": "^1.11.0",
|
|
67
|
+
"@azure/logger": "^1.1.4",
|
|
68
|
+
"tslib": "^2.8.1"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"
|
|
71
|
+
"@azure-tools/test-credential": "^2.0.0",
|
|
72
|
+
"@azure-tools/test-recorder": ">=4.1.0-alpha <4.1.0-alphb",
|
|
73
|
+
"@azure-tools/test-utils-vitest": ">=1.0.0-alpha <1.0.0-alphb",
|
|
74
|
+
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
|
|
75
|
+
"@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
|
|
76
|
+
"@azure/identity": "^4.6.0",
|
|
72
77
|
"@types/node": "^18.0.0",
|
|
73
|
-
"eslint": "^8.55.0",
|
|
74
|
-
"typescript": "~5.7.2",
|
|
75
|
-
"tshy": "^2.0.0",
|
|
76
|
-
"@azure/identity": "^4.2.1",
|
|
77
78
|
"@vitest/browser": "^3.0.3",
|
|
78
79
|
"@vitest/coverage-istanbul": "^3.0.3",
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
80
|
+
"dotenv": "^16.0.0",
|
|
81
|
+
"eslint": "^8.55.0",
|
|
82
|
+
"playwright": "^1.50.0",
|
|
83
|
+
"tshy": "^2.0.0",
|
|
84
|
+
"typescript": "~5.7.2",
|
|
85
|
+
"vitest": "^3.0.3"
|
|
85
86
|
},
|
|
86
87
|
"scripts": {
|
|
87
|
-
"
|
|
88
|
-
"extract-api": "dev-tool run vendored rimraf review && dev-tool run extract-api",
|
|
89
|
-
"pack": "npm pack 2>&1",
|
|
90
|
-
"lint": "echo skipped",
|
|
91
|
-
"lint:fix": "echo skipped",
|
|
92
|
-
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
|
93
|
-
"unit-test:browser": "npm run build:test && dev-tool run test:vitest --browser",
|
|
94
|
-
"unit-test:node": "dev-tool run test:vitest",
|
|
95
|
-
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
96
|
-
"integration-test:browser": "echo skipped",
|
|
97
|
-
"integration-test:node": "echo skipped",
|
|
88
|
+
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
|
|
98
89
|
"build:samples": "tsc -p tsconfig.samples.json && dev-tool samples publish -f",
|
|
90
|
+
"build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test",
|
|
99
91
|
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" \"samples-dev/*.ts\"",
|
|
92
|
+
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
|
100
93
|
"execute:samples": "dev-tool samples run samples-dev",
|
|
94
|
+
"extract-api": "dev-tool run vendored rimraf review && dev-tool run extract-api",
|
|
101
95
|
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" \"samples-dev/*.ts\"",
|
|
102
96
|
"generate:client": "echo skipped",
|
|
103
|
-
"test
|
|
97
|
+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
98
|
+
"integration-test:browser": "echo skipped",
|
|
99
|
+
"integration-test:node": "dev-tool run test:vitest --esm",
|
|
100
|
+
"lint": "echo skipped",
|
|
101
|
+
"lint:fix": "echo skipped",
|
|
104
102
|
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
|
|
105
|
-
"
|
|
106
|
-
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
|
|
107
|
-
"test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node",
|
|
103
|
+
"pack": "npm pack 2>&1",
|
|
108
104
|
"test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test",
|
|
109
|
-
"
|
|
105
|
+
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser",
|
|
106
|
+
"test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node",
|
|
107
|
+
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
|
108
|
+
"unit-test:browser": "echo skipped",
|
|
109
|
+
"unit-test:node": "dev-tool run test:vitest",
|
|
110
|
+
"update-snippets": "dev-tool run update-snippets"
|
|
110
111
|
},
|
|
111
112
|
"//sampleConfiguration": {
|
|
112
113
|
"productName": "@azure/arm-devopsinfrastructure",
|
|
@@ -157,5 +158,7 @@
|
|
|
157
158
|
},
|
|
158
159
|
"main": "./dist/commonjs/index.js",
|
|
159
160
|
"types": "./dist/commonjs/index.d.ts",
|
|
160
|
-
"module": "./dist/esm/index.js"
|
|
161
|
+
"module": "./dist/esm/index.js",
|
|
162
|
+
"browser": "./dist/browser/index.js",
|
|
163
|
+
"react-native": "./dist/react-native/index.js"
|
|
161
164
|
}
|