Skip to content

Commit 5971ee8

Browse files
author
SDKAuto
committed
CodeGen from PR 34311 in Azure/azure-rest-api-specs
Merge e0f26af627aab821d10425689091702b91514c54 into 761d8b58e465b26eddb8ad70dda3cde7b4228bdf
1 parent 26158f3 commit 5971ee8

File tree

106 files changed

+1509
-4185
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+1509
-4185
lines changed

sdk/selfhelp/arm-selfhelp/CHANGELOG.md

Lines changed: 119 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,127 @@
11
# Release History
2-
3-
## 2.0.0-beta.6 (Unreleased)
4-
2+
3+
## 2.0.0-beta.6 (2025-05-09)
4+
Compared with version 1.0.0
5+
56
### Features Added
67

7-
### Breaking Changes
8-
9-
### Bugs Fixed
8+
- Added operation group CheckNameAvailability
9+
- Added operation group DiscoverySolutionNLP
10+
- Added operation group SimplifiedSolutions
11+
- Added operation group Solution
12+
- Added operation group SolutionSelfHelp
13+
- Added operation group Troubleshooters
14+
- Added Interface AutomatedCheckResult
15+
- Added Interface CheckNameAvailabilityCheckAvailabilityOptionalParams
16+
- Added Interface ClassificationService
17+
- Added Interface ContinueRequestBody
18+
- Added Interface DiagnosticsCreateHeaders
19+
- Added Interface DiscoveryNlpRequest
20+
- Added Interface DiscoveryNlpResponse
21+
- Added Interface DiscoverySolutionNLPDiscoverSolutionsBySubscriptionOptionalParams
22+
- Added Interface DiscoverySolutionNLPDiscoverSolutionsOptionalParams
23+
- Added Interface Filter
24+
- Added Interface FilterGroup
25+
- Added Interface MetricsBasedChart
26+
- Added Interface ReplacementMaps
27+
- Added Interface ReplacementMapsSelfHelp
28+
- Added Interface ResponseOption
29+
- Added Interface ResponseValidationProperties
30+
- Added Interface RestartTroubleshooterResponse
31+
- Added Interface SearchResult
32+
- Added Interface Section
33+
- Added Interface SectionSelfHelp
34+
- Added Interface SimplifiedSolutionsCreateHeaders
35+
- Added Interface SimplifiedSolutionsCreateOptionalParams
36+
- Added Interface SimplifiedSolutionsGetOptionalParams
37+
- Added Interface SimplifiedSolutionsResource
38+
- Added Interface SolutionCreateHeaders
39+
- Added Interface SolutionCreateOptionalParams
40+
- Added Interface SolutionGetOptionalParams
41+
- Added Interface SolutionMetadataProperties
42+
- Added Interface SolutionNlpMetadataResource
43+
- Added Interface SolutionPatchRequestBody
44+
- Added Interface SolutionResource
45+
- Added Interface SolutionResourceSelfHelp
46+
- Added Interface SolutionsDiagnostic
47+
- Added Interface SolutionSelfHelpGetOptionalParams
48+
- Added Interface SolutionsTroubleshooters
49+
- Added Interface SolutionUpdateHeaders
50+
- Added Interface SolutionUpdateOptionalParams
51+
- Added Interface SolutionWarmUpOptionalParams
52+
- Added Interface SolutionWarmUpRequestBody
53+
- Added Interface Step
54+
- Added Interface StepInput
55+
- Added Interface TriggerCriterion
56+
- Added Interface TroubleshooterResource
57+
- Added Interface TroubleshooterResponse
58+
- Added Interface TroubleshootersContinueOptionalParams
59+
- Added Interface TroubleshootersCreateOptionalParams
60+
- Added Interface TroubleshootersEndOptionalParams
61+
- Added Interface TroubleshootersGetOptionalParams
62+
- Added Interface TroubleshootersRestartOptionalParams
63+
- Added Interface Video
64+
- Added Interface VideoGroup
65+
- Added Interface VideoGroupVideo
66+
- Added Interface WebResult
67+
- Added Type Alias AggregationType
68+
- Added Type Alias AutomatedCheckResultType
69+
- Added Type Alias CheckNameAvailabilityCheckAvailabilityResponse
70+
- Added Type Alias Confidence
71+
- Added Type Alias DiagnosticProvisioningState
72+
- Added Type Alias DiscoverySolutionNLPDiscoverSolutionsBySubscriptionResponse
73+
- Added Type Alias DiscoverySolutionNLPDiscoverSolutionsResponse
74+
- Added Type Alias ExecutionStatus
75+
- Added Type Alias Name
76+
- Added Type Alias QuestionContentType
77+
- Added Type Alias QuestionType
78+
- Added Type Alias ResultType
79+
- Added Type Alias SimplifiedSolutionsCreateResponse
80+
- Added Type Alias SimplifiedSolutionsGetResponse
81+
- Added Type Alias SolutionCreateResponse
82+
- Added Type Alias SolutionGetResponse
83+
- Added Type Alias SolutionProvisioningState
84+
- Added Type Alias SolutionSelfHelpGetResponse
85+
- Added Type Alias SolutionType
86+
- Added Type Alias SolutionUpdateResponse
87+
- Added Type Alias TroubleshooterProvisioningState
88+
- Added Type Alias TroubleshootersCreateResponse
89+
- Added Type Alias TroubleshootersGetResponse
90+
- Added Type Alias TroubleshootersRestartResponse
91+
- Added Type Alias Type
92+
- Added Type Alias ValidationScope
93+
- Interface SolutionMetadataResource has a new optional parameter solutions
94+
- Added Enum KnownAggregationType
95+
- Added Enum KnownAutomatedCheckResultType
96+
- Added Enum KnownConfidence
97+
- Added Enum KnownDiagnosticProvisioningState
98+
- Added Enum KnownExecutionStatus
99+
- Added Enum KnownName
100+
- Added Enum KnownQuestionContentType
101+
- Added Enum KnownQuestionType
102+
- Added Enum KnownResultType
103+
- Added Enum KnownSolutionProvisioningState
104+
- Added Enum KnownSolutionType
105+
- Added Enum KnownTroubleshooterProvisioningState
106+
- Added Enum KnownType
107+
- Added Enum KnownValidationScope
10108

11-
### Other Changes
109+
### Breaking Changes
12110

111+
- Removed operation Diagnostics.checkNameAvailability
112+
- Operation Diagnostics.beginCreate has a new signature
113+
- Operation Diagnostics.beginCreateAndWait has a new signature
114+
- Operation DiscoverySolution.list has a new signature
115+
- Interface DiagnosticsCreateOptionalParams no longer has parameter diagnosticResourceRequest
116+
- Interface SolutionMetadataResource no longer has parameter description
117+
- Interface SolutionMetadataResource no longer has parameter requiredParameterSets
118+
- Interface SolutionMetadataResource no longer has parameter solutionId
119+
- Interface SolutionMetadataResource no longer has parameter solutionType
120+
- Parameter value of interface DiscoveryResponse is now required
121+
- Type of parameter provisioningState of interface DiagnosticResource is changed from ProvisioningState to DiagnosticProvisioningState
122+
- Removed Enum KnownProvisioningState
123+
124+
13125
## 2.0.0-beta.5 (2024-06-26)
14126
Compared with version 1.0.0
15127

sdk/selfhelp/arm-selfhelp/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

sdk/selfhelp/arm-selfhelp/README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ npm install @azure/identity
4444
```
4545

4646
You will also need to **register a new AAD application and grant access to Azure HelpRP** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
47-
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`.
4847

4948
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).
5049

@@ -55,7 +54,7 @@ import { HelpRP } from "@azure/arm-selfhelp";
5554
import { DefaultAzureCredential } from "@azure/identity";
5655

5756
const subscriptionId = "00000000-0000-0000-0000-000000000000";
58-
const client = new HelpRP(new DefaultAzureCredential());
57+
const client = new HelpRP(new DefaultAzureCredential(), subscriptionId);
5958
```
6059

6160
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
@@ -64,16 +63,14 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
6463
import { InteractiveBrowserCredential } from "@azure/identity";
6564
import { HelpRP } from "@azure/arm-selfhelp";
6665

67-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
6866
const credential = new InteractiveBrowserCredential({
6967
tenantId: "<YOUR_TENANT_ID>",
70-
clientId: "<YOUR_CLIENT_ID>",
71-
});
72-
const client = new HelpRP(credential);
68+
clientId: "<YOUR_CLIENT_ID>"
69+
});
70+
const client = new HelpRP(credential, subscriptionId);
7371
```
7472

7573
### JavaScript Bundle
76-
7774
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).
7875

7976
## Key concepts
@@ -109,7 +106,6 @@ If you'd like to contribute to this library, please read the [contributing guide
109106
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
110107

111108

112-
113109
[azure_cli]: https://learn.microsoft.com/cli/azure
114110
[azure_sub]: https://azure.microsoft.com/free/
115111
[azure_sub]: https://azure.microsoft.com/free/

sdk/selfhelp/arm-selfhelp/_meta.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "1c63635d66ae38cff18045ab416a6572d3e15f6e",
2+
"commit": "a8ced2391c7605ddfae3146dbb38df8efc70eeeb",
33
"readme": "specification/help/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\help\\resource-manager\\readme.md --use=@autorest/[email protected].23 --generate-sample=true",
4+
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/help/resource-manager/readme.md --use=@autorest/typescript@^6.0.12",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/[email protected].10",
7-
"use": "@autorest/[email protected].23"
8-
}
6+
"release_tool": "@azure-tools/[email protected].26",
7+
"use": "@autorest/typescript@^6.0.12"
8+
}

sdk/selfhelp/arm-selfhelp/api-extractor.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@
2828
}
2929
}
3030
}
31-
}
31+
}

sdk/selfhelp/arm-selfhelp/assets.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

sdk/selfhelp/arm-selfhelp/package.json

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -10,42 +10,41 @@
1010
"dependencies": {
1111
"@azure/abort-controller": "^2.1.2",
1212
"@azure/core-auth": "^1.9.0",
13-
"@azure/core-client": "^1.9.2",
13+
"@azure/core-client": "^1.9.4",
1414
"@azure/core-lro": "^2.5.4",
1515
"@azure/core-paging": "^1.6.2",
16-
"@azure/core-rest-pipeline": "^1.19.0",
16+
"@azure/core-rest-pipeline": "^1.20.0",
1717
"tslib": "^2.8.1"
1818
},
1919
"keywords": [
2020
"node",
2121
"azure",
2222
"typescript",
2323
"browser",
24-
"isomorphic"
24+
"isomorphic",
25+
"cloud"
2526
],
2627
"license": "MIT",
2728
"main": "./dist/commonjs/index.js",
2829
"module": "./dist/esm/index.js",
2930
"types": "./dist/commonjs/index.d.ts",
31+
"type": "module",
3032
"devDependencies": {
3133
"@azure-tools/test-credential": "^2.0.0",
3234
"@azure-tools/test-recorder": "^4.1.0",
3335
"@azure-tools/test-utils-vitest": "^1.0.0",
3436
"@azure/dev-tool": "^1.0.0",
35-
"@azure/identity": "^4.6.0",
36-
"@azure/logger": "^1.1.4",
37+
"@azure/identity": "^4.9.1",
38+
"@azure/logger": "^1.2.0",
3739
"@types/node": "^18.0.0",
3840
"@vitest/browser": "^3.0.9",
3941
"@vitest/coverage-istanbul": "^3.0.9",
4042
"dotenv": "^16.0.0",
41-
"playwright": "^1.50.1",
43+
"playwright": "^1.52.0",
4244
"typescript": "~5.8.2",
4345
"vitest": "^3.0.9"
4446
},
45-
"repository": {
46-
"type": "git",
47-
"url": "https://github.com/Azure/azure-sdk-for-js.git"
48-
},
47+
"repository": "github:Azure/azure-sdk-for-js",
4948
"bugs": {
5049
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
5150
},
@@ -58,20 +57,30 @@
5857
],
5958
"scripts": {
6059
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
60+
"build:browser": "echo skipped",
61+
"build:node": "echo skipped",
6162
"build:samples": "echo skipped.",
62-
"check-format": "echo skipped",
63+
"build:test": "echo skipped",
64+
"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}\" ",
6365
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
6466
"execute:samples": "echo skipped",
6567
"extract-api": "dev-tool run extract-api",
66-
"format": "echo skipped",
68+
"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}\" ",
69+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
70+
"integration-test:browser": "echo skipped",
71+
"integration-test:node": "dev-tool run test:vitest --esm",
6772
"lint": "echo skipped",
73+
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
6874
"pack": "npm pack 2>&1",
6975
"prepack": "npm run build",
70-
"test": "npm run test:node && npm run test:browser",
76+
"test": "npm run integration-test",
7177
"test:browser": "echo skipped",
7278
"test:node": "dev-tool run test:vitest",
73-
"test:node:esm": "dev-tool run test:vitest --esm",
74-
"update-snippets": "dev-tool run update-snippets"
79+
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
80+
"unit-test:browser": "echo skipped",
81+
"unit-test:node": "dev-tool run test:vitest",
82+
"update-snippets": "dev-tool run update-snippets",
83+
"test:node:esm": "dev-tool run test:vitest --esm"
7584
},
7685
"sideEffects": false,
7786
"//metadata": {
@@ -83,16 +92,9 @@
8392
]
8493
},
8594
"autoPublish": true,
95+
"browser": "./dist/browser/index.js",
96+
"react-native": "./dist/react-native/index.js",
8697
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/selfhelp/arm-selfhelp",
87-
"//sampleConfiguration": {
88-
"productName": "",
89-
"productSlugs": [
90-
"azure"
91-
],
92-
"disableDocsMs": true,
93-
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-selfhelp?view=azure-node-preview"
94-
},
95-
"type": "module",
9698
"tshy": {
9799
"project": "./tsconfig.src.json",
98100
"exports": {
@@ -109,8 +111,6 @@
109111
],
110112
"selfLink": false
111113
},
112-
"browser": "./dist/browser/index.js",
113-
"react-native": "./dist/react-native/index.js",
114114
"exports": {
115115
"./package.json": "./package.json",
116116
".": {
@@ -132,4 +132,4 @@
132132
}
133133
}
134134
}
135-
}
135+
}

0 commit comments

Comments
 (0)