Skip to content

Commit 1733bfa

Browse files
authored
1 parent 5bdb96b commit 1733bfa

22 files changed

+177
-83
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 16 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/selfhelp/arm-selfhelp/CHANGELOG.md

Lines changed: 117 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,124 @@
11
# Release History
2+
3+
## 2.0.0-beta.4 (2024-05-10)
4+
5+
**Features**
26

3-
## 2.0.0-beta.4 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
7+
- Added operation group CheckNameAvailability
8+
- Added operation group DiscoverySolutionNLPSubscriptionScope
9+
- Added operation group DiscoverySolutionNLPTenantScope
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 CheckNameAvailabilityPostOptionalParams
16+
- Added Interface ClassificationService
17+
- Added Interface ContinueRequestBody
18+
- Added Interface DiscoveryNlpRequest
19+
- Added Interface DiscoveryNlpResponse
20+
- Added Interface DiscoverySolutionNLPSubscriptionScopePostOptionalParams
21+
- Added Interface DiscoverySolutionNLPTenantScopePostOptionalParams
22+
- Added Interface Filter
23+
- Added Interface FilterGroup
24+
- Added Interface MetricsBasedChart
25+
- Added Interface ReplacementMaps
26+
- Added Interface ReplacementMapsSelfHelp
27+
- Added Interface ResponseOption
28+
- Added Interface ResponseValidationProperties
29+
- Added Interface RestartTroubleshooterResponse
30+
- Added Interface SearchResult
31+
- Added Interface Section
32+
- Added Interface SectionSelfHelp
33+
- Added Interface SimplifiedSolutionsCreateOptionalParams
34+
- Added Interface SimplifiedSolutionsGetOptionalParams
35+
- Added Interface SimplifiedSolutionsResource
36+
- Added Interface SolutionCreateOptionalParams
37+
- Added Interface SolutionGetOptionalParams
38+
- Added Interface SolutionMetadataProperties
39+
- Added Interface SolutionNlpMetadataResource
40+
- Added Interface SolutionPatchRequestBody
41+
- Added Interface SolutionResource
42+
- Added Interface SolutionResourceSelfHelp
43+
- Added Interface SolutionsDiagnostic
44+
- Added Interface SolutionSelfHelpGetOptionalParams
45+
- Added Interface SolutionsTroubleshooters
46+
- Added Interface SolutionUpdateHeaders
47+
- Added Interface SolutionUpdateOptionalParams
48+
- Added Interface SolutionWarmUpOptionalParams
49+
- Added Interface SolutionWarmUpRequestBody
50+
- Added Interface Step
51+
- Added Interface StepInput
52+
- Added Interface TriggerCriterion
53+
- Added Interface TroubleshooterResource
54+
- Added Interface TroubleshooterResponse
55+
- Added Interface TroubleshootersContinueHeaders
56+
- Added Interface TroubleshootersContinueOptionalParams
57+
- Added Interface TroubleshootersCreateOptionalParams
58+
- Added Interface TroubleshootersEndHeaders
59+
- Added Interface TroubleshootersEndOptionalParams
60+
- Added Interface TroubleshootersGetOptionalParams
61+
- Added Interface TroubleshootersRestartHeaders
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 CheckNameAvailabilityPostResponse
70+
- Added Type Alias Confidence
71+
- Added Type Alias DiagnosticProvisioningState
72+
- Added Type Alias DiscoverySolutionNLPSubscriptionScopePostResponse
73+
- Added Type Alias DiscoverySolutionNLPTenantScopePostResponse
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 TroubleshootersContinueResponse
89+
- Added Type Alias TroubleshootersCreateResponse
90+
- Added Type Alias TroubleshootersEndResponse
91+
- Added Type Alias TroubleshootersGetResponse
92+
- Added Type Alias TroubleshootersRestartResponse
93+
- Added Type Alias Type
94+
- Added Type Alias ValidationScope
95+
- Interface SolutionMetadataResource has a new optional parameter solutions
96+
- Added Enum KnownAggregationType
97+
- Added Enum KnownAutomatedCheckResultType
98+
- Added Enum KnownConfidence
99+
- Added Enum KnownDiagnosticProvisioningState
100+
- Added Enum KnownExecutionStatus
101+
- Added Enum KnownName
102+
- Added Enum KnownQuestionContentType
103+
- Added Enum KnownQuestionType
104+
- Added Enum KnownResultType
105+
- Added Enum KnownSolutionProvisioningState
106+
- Added Enum KnownSolutionType
107+
- Added Enum KnownTroubleshooterProvisioningState
108+
- Added Enum KnownType
109+
- Added Enum KnownValidationScope
10110

11-
### Other Changes
111+
**Breaking Changes**
12112

113+
- Removed operation Diagnostics.checkNameAvailability
114+
- Operation DiscoverySolution.list has a new signature
115+
- Interface SolutionMetadataResource no longer has parameter description
116+
- Interface SolutionMetadataResource no longer has parameter requiredParameterSets
117+
- Interface SolutionMetadataResource no longer has parameter solutionId
118+
- Interface SolutionMetadataResource no longer has parameter solutionType
119+
- Type of parameter provisioningState of interface DiagnosticResource is changed from ProvisioningState to DiagnosticProvisioningState
120+
- Removed Enum KnownProvisioningState
121+
13122
## 2.0.0-beta.3 (2024-04-19)
14123

15124
**Features**

sdk/selfhelp/arm-selfhelp/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,14 @@ const { HelpRP } = require("@azure/arm-selfhelp");
5353
const { DefaultAzureCredential } = require("@azure/identity");
5454
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
5555

56-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
57-
const client = new HelpRP(new DefaultAzureCredential(), subscriptionId);
56+
const client = new HelpRP(new DefaultAzureCredential());
5857

5958
// For client-side applications running in the browser, use this code instead:
6059
// const credential = new InteractiveBrowserCredential({
6160
// tenantId: "<YOUR_TENANT_ID>",
6261
// clientId: "<YOUR_CLIENT_ID>"
6362
// });
64-
// const client = new HelpRP(credential, subscriptionId);
63+
// const client = new HelpRP(credential);
6564
```
6665

6766

sdk/selfhelp/arm-selfhelp/_meta.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "db6282dd0d04c5f13375e98e88b09d04c2009ae8",
2+
"commit": "68c8da604a93740f5f074046f9d8ffe23c5a2f41",
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].20 --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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\help\\resource-manager\\readme.md --use=@autorest/[email protected].21 --generate-sample=true",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/[email protected].5",
7-
"use": "@autorest/[email protected].20"
6+
"release_tool": "@azure-tools/[email protected].7",
7+
"use": "@autorest/[email protected].21"
88
}

sdk/selfhelp/arm-selfhelp/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "js",
44
"TagPrefix": "js/selfhelp/arm-selfhelp",
5-
"Tag": "js/selfhelp/arm-selfhelp_56bdb44654"
5+
"Tag": "js/selfhelp/arm-selfhelp_0b7f76cb88"
66
}

sdk/selfhelp/arm-selfhelp/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@
3737
"@azure/dev-tool": "^1.0.0",
3838
"@azure/identity": "^4.0.1",
3939
"@azure-tools/test-recorder": "^3.0.0",
40-
"@azure-tools/test-credential": "^1.0.0",
40+
"@azure-tools/test-credential": "^1.1.0",
4141
"mocha": "^10.0.0",
4242
"@types/mocha": "^10.0.0",
43+
"esm": "^3.2.18",
4344
"@types/chai": "^4.2.8",
4445
"chai": "^4.2.0",
4546
"cross-env": "^7.0.2",
@@ -75,7 +76,7 @@
7576
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
7677
"prepack": "npm run build",
7778
"pack": "npm pack 2>&1",
78-
"extract-api": "dev-tool run extract-api",
79+
"extract-api": "api-extractor run --local",
7980
"lint": "echo skipped",
8081
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
8182
"build:node": "echo skipped",

sdk/selfhelp/arm-selfhelp/review/arm-selfhelp.api.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export type DiscoverySolutionListResponse = DiscoveryResponse;
169169

170170
// @public
171171
export interface DiscoverySolutionNLPSubscriptionScope {
172-
post(options?: DiscoverySolutionNLPSubscriptionScopePostOptionalParams): Promise<DiscoverySolutionNLPSubscriptionScopePostResponse>;
172+
post(subscriptionId: string, options?: DiscoverySolutionNLPSubscriptionScopePostOptionalParams): Promise<DiscoverySolutionNLPSubscriptionScopePostResponse>;
173173
}
174174

175175
// @public
@@ -243,7 +243,6 @@ export function getContinuationToken(page: unknown): string | undefined;
243243
export class HelpRP extends coreClient.ServiceClient {
244244
// (undocumented)
245245
$host: string;
246-
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: HelpRPOptionalParams);
247246
constructor(credentials: coreAuth.TokenCredential, options?: HelpRPOptionalParams);
248247
// (undocumented)
249248
apiVersion: string;
@@ -266,8 +265,6 @@ export class HelpRP extends coreClient.ServiceClient {
266265
// (undocumented)
267266
solutionSelfHelp: SolutionSelfHelp;
268267
// (undocumented)
269-
subscriptionId?: string;
270-
// (undocumented)
271268
troubleshooters: Troubleshooters;
272269
}
273270

sdk/selfhelp/arm-selfhelp/samples-dev/discoverySolutionNlpSubscriptionScopePostSample.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ dotenv.config();
2525
* x-ms-original-file: specification/help/resource-manager/Microsoft.Help/preview/2024-03-01-preview/examples/DiscoverSolutionsAtSubscriptionScope.json
2626
*/
2727
async function discoverySolutionsUsingIssueSummaryAndServiceId() {
28-
const subscriptionId =
29-
process.env["SELFHELP_SUBSCRIPTION_ID"] ||
30-
"0d0fcd2e-c4fd-4349-8497-200edb3923c6";
28+
const subscriptionId = "0d0fcd2e-c4fd-4349-8497-200edb3923c6";
3129
const discoverSolutionRequest: DiscoveryNlpRequest = {
3230
issueSummary: "how to retrieve certs from deleted keyvault.",
3331
resourceId:
@@ -38,9 +36,11 @@ async function discoverySolutionsUsingIssueSummaryAndServiceId() {
3836
discoverSolutionRequest,
3937
};
4038
const credential = new DefaultAzureCredential();
41-
const client = new HelpRP(credential, subscriptionId);
42-
const result =
43-
await client.discoverySolutionNLPSubscriptionScope.post(options);
39+
const client = new HelpRP(credential);
40+
const result = await client.discoverySolutionNLPSubscriptionScope.post(
41+
subscriptionId,
42+
options,
43+
);
4444
console.log(result);
4545
}
4646

sdk/selfhelp/arm-selfhelp/samples-dev/discoverySolutionNlpTenantScopePostSample.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ dotenv.config();
2727
async function discoverySolutionsUsingIssueSummaryAndServiceId() {
2828
const discoverSolutionRequest: DiscoveryNlpRequest = {
2929
issueSummary: "how to retrieve certs from deleted keyvault.",
30-
resourceId:
31-
"subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourceGroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read",
3230
serviceId: "0d0fcd2e-c4fd-4349-8497-200edb39s3ca",
3331
};
3432
const options: DiscoverySolutionNLPTenantScopePostOptionalParams = {

sdk/selfhelp/arm-selfhelp/samples-dev/operationsListSample.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@ dotenv.config();
2121
* x-ms-original-file: specification/help/resource-manager/Microsoft.Help/preview/2024-03-01-preview/examples/ListOperations.json
2222
*/
2323
async function listAllOperations() {
24-
const subscriptionId =
25-
process.env["SELFHELP_SUBSCRIPTION_ID"] ||
26-
"00000000-0000-0000-0000-000000000000";
2724
const credential = new DefaultAzureCredential();
28-
const client = new HelpRP(credential, subscriptionId);
25+
const client = new HelpRP(credential);
2926
const resArray = new Array();
3027
for await (let item of client.operations.list()) {
3128
resArray.push(item);

0 commit comments

Comments
 (0)