Skip to content

Commit

Permalink
[mgmt] selfhelp release (#29660)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazrael2119 committed May 11, 2024
1 parent 5bdb96b commit 1733bfa
Show file tree
Hide file tree
Showing 22 changed files with 177 additions and 83 deletions.
18 changes: 16 additions & 2 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

125 changes: 117 additions & 8 deletions sdk/selfhelp/arm-selfhelp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,124 @@
# Release History

## 2.0.0-beta.4 (2024-05-10)

**Features**

## 2.0.0-beta.4 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed
- Added operation group CheckNameAvailability
- Added operation group DiscoverySolutionNLPSubscriptionScope
- Added operation group DiscoverySolutionNLPTenantScope
- Added operation group SimplifiedSolutions
- Added operation group Solution
- Added operation group SolutionSelfHelp
- Added operation group Troubleshooters
- Added Interface AutomatedCheckResult
- Added Interface CheckNameAvailabilityPostOptionalParams
- Added Interface ClassificationService
- Added Interface ContinueRequestBody
- Added Interface DiscoveryNlpRequest
- Added Interface DiscoveryNlpResponse
- Added Interface DiscoverySolutionNLPSubscriptionScopePostOptionalParams
- Added Interface DiscoverySolutionNLPTenantScopePostOptionalParams
- Added Interface Filter
- Added Interface FilterGroup
- Added Interface MetricsBasedChart
- Added Interface ReplacementMaps
- Added Interface ReplacementMapsSelfHelp
- Added Interface ResponseOption
- Added Interface ResponseValidationProperties
- Added Interface RestartTroubleshooterResponse
- Added Interface SearchResult
- Added Interface Section
- Added Interface SectionSelfHelp
- Added Interface SimplifiedSolutionsCreateOptionalParams
- Added Interface SimplifiedSolutionsGetOptionalParams
- Added Interface SimplifiedSolutionsResource
- Added Interface SolutionCreateOptionalParams
- Added Interface SolutionGetOptionalParams
- Added Interface SolutionMetadataProperties
- Added Interface SolutionNlpMetadataResource
- Added Interface SolutionPatchRequestBody
- Added Interface SolutionResource
- Added Interface SolutionResourceSelfHelp
- Added Interface SolutionsDiagnostic
- Added Interface SolutionSelfHelpGetOptionalParams
- Added Interface SolutionsTroubleshooters
- Added Interface SolutionUpdateHeaders
- Added Interface SolutionUpdateOptionalParams
- Added Interface SolutionWarmUpOptionalParams
- Added Interface SolutionWarmUpRequestBody
- Added Interface Step
- Added Interface StepInput
- Added Interface TriggerCriterion
- Added Interface TroubleshooterResource
- Added Interface TroubleshooterResponse
- Added Interface TroubleshootersContinueHeaders
- Added Interface TroubleshootersContinueOptionalParams
- Added Interface TroubleshootersCreateOptionalParams
- Added Interface TroubleshootersEndHeaders
- Added Interface TroubleshootersEndOptionalParams
- Added Interface TroubleshootersGetOptionalParams
- Added Interface TroubleshootersRestartHeaders
- Added Interface TroubleshootersRestartOptionalParams
- Added Interface Video
- Added Interface VideoGroup
- Added Interface VideoGroupVideo
- Added Interface WebResult
- Added Type Alias AggregationType
- Added Type Alias AutomatedCheckResultType
- Added Type Alias CheckNameAvailabilityPostResponse
- Added Type Alias Confidence
- Added Type Alias DiagnosticProvisioningState
- Added Type Alias DiscoverySolutionNLPSubscriptionScopePostResponse
- Added Type Alias DiscoverySolutionNLPTenantScopePostResponse
- Added Type Alias ExecutionStatus
- Added Type Alias Name
- Added Type Alias QuestionContentType
- Added Type Alias QuestionType
- Added Type Alias ResultType
- Added Type Alias SimplifiedSolutionsCreateResponse
- Added Type Alias SimplifiedSolutionsGetResponse
- Added Type Alias SolutionCreateResponse
- Added Type Alias SolutionGetResponse
- Added Type Alias SolutionProvisioningState
- Added Type Alias SolutionSelfHelpGetResponse
- Added Type Alias SolutionType
- Added Type Alias SolutionUpdateResponse
- Added Type Alias TroubleshooterProvisioningState
- Added Type Alias TroubleshootersContinueResponse
- Added Type Alias TroubleshootersCreateResponse
- Added Type Alias TroubleshootersEndResponse
- Added Type Alias TroubleshootersGetResponse
- Added Type Alias TroubleshootersRestartResponse
- Added Type Alias Type
- Added Type Alias ValidationScope
- Interface SolutionMetadataResource has a new optional parameter solutions
- Added Enum KnownAggregationType
- Added Enum KnownAutomatedCheckResultType
- Added Enum KnownConfidence
- Added Enum KnownDiagnosticProvisioningState
- Added Enum KnownExecutionStatus
- Added Enum KnownName
- Added Enum KnownQuestionContentType
- Added Enum KnownQuestionType
- Added Enum KnownResultType
- Added Enum KnownSolutionProvisioningState
- Added Enum KnownSolutionType
- Added Enum KnownTroubleshooterProvisioningState
- Added Enum KnownType
- Added Enum KnownValidationScope

### Other Changes
**Breaking Changes**

- Removed operation Diagnostics.checkNameAvailability
- Operation DiscoverySolution.list has a new signature
- Interface SolutionMetadataResource no longer has parameter description
- Interface SolutionMetadataResource no longer has parameter requiredParameterSets
- Interface SolutionMetadataResource no longer has parameter solutionId
- Interface SolutionMetadataResource no longer has parameter solutionType
- Type of parameter provisioningState of interface DiagnosticResource is changed from ProvisioningState to DiagnosticProvisioningState
- Removed Enum KnownProvisioningState

## 2.0.0-beta.3 (2024-04-19)

**Features**
Expand Down
5 changes: 2 additions & 3 deletions sdk/selfhelp/arm-selfhelp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,14 @@ const { HelpRP } = require("@azure/arm-selfhelp");
const { DefaultAzureCredential } = require("@azure/identity");
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.

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

// For client-side applications running in the browser, use this code instead:
// const credential = new InteractiveBrowserCredential({
// tenantId: "<YOUR_TENANT_ID>",
// clientId: "<YOUR_CLIENT_ID>"
// });
// const client = new HelpRP(credential, subscriptionId);
// const client = new HelpRP(credential);
```


Expand Down
8 changes: 4 additions & 4 deletions sdk/selfhelp/arm-selfhelp/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "db6282dd0d04c5f13375e98e88b09d04c2009ae8",
"commit": "68c8da604a93740f5f074046f9d8ffe23c5a2f41",
"readme": "specification/help/resource-manager/readme.md",
"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/typescript@6.0.20 --generate-sample=true",
"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/typescript@6.0.21 --generate-sample=true",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.5",
"use": "@autorest/typescript@6.0.20"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.7",
"use": "@autorest/typescript@6.0.21"
}
2 changes: 1 addition & 1 deletion sdk/selfhelp/arm-selfhelp/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "js",
"TagPrefix": "js/selfhelp/arm-selfhelp",
"Tag": "js/selfhelp/arm-selfhelp_56bdb44654"
"Tag": "js/selfhelp/arm-selfhelp_0b7f76cb88"
}
5 changes: 3 additions & 2 deletions sdk/selfhelp/arm-selfhelp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.0.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.0.0",
"@azure-tools/test-credential": "^1.1.0",
"mocha": "^10.0.0",
"@types/mocha": "^10.0.0",
"esm": "^3.2.18",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
Expand Down Expand Up @@ -75,7 +76,7 @@
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"prepack": "npm run build",
"pack": "npm pack 2>&1",
"extract-api": "dev-tool run extract-api",
"extract-api": "api-extractor run --local",
"lint": "echo skipped",
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"build:node": "echo skipped",
Expand Down
5 changes: 1 addition & 4 deletions sdk/selfhelp/arm-selfhelp/review/arm-selfhelp.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export type DiscoverySolutionListResponse = DiscoveryResponse;

// @public
export interface DiscoverySolutionNLPSubscriptionScope {
post(options?: DiscoverySolutionNLPSubscriptionScopePostOptionalParams): Promise<DiscoverySolutionNLPSubscriptionScopePostResponse>;
post(subscriptionId: string, options?: DiscoverySolutionNLPSubscriptionScopePostOptionalParams): Promise<DiscoverySolutionNLPSubscriptionScopePostResponse>;
}

// @public
Expand Down Expand Up @@ -243,7 +243,6 @@ export function getContinuationToken(page: unknown): string | undefined;
export class HelpRP extends coreClient.ServiceClient {
// (undocumented)
$host: string;
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: HelpRPOptionalParams);
constructor(credentials: coreAuth.TokenCredential, options?: HelpRPOptionalParams);
// (undocumented)
apiVersion: string;
Expand All @@ -266,8 +265,6 @@ export class HelpRP extends coreClient.ServiceClient {
// (undocumented)
solutionSelfHelp: SolutionSelfHelp;
// (undocumented)
subscriptionId?: string;
// (undocumented)
troubleshooters: Troubleshooters;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ dotenv.config();
* x-ms-original-file: specification/help/resource-manager/Microsoft.Help/preview/2024-03-01-preview/examples/DiscoverSolutionsAtSubscriptionScope.json
*/
async function discoverySolutionsUsingIssueSummaryAndServiceId() {
const subscriptionId =
process.env["SELFHELP_SUBSCRIPTION_ID"] ||
"0d0fcd2e-c4fd-4349-8497-200edb3923c6";
const subscriptionId = "0d0fcd2e-c4fd-4349-8497-200edb3923c6";
const discoverSolutionRequest: DiscoveryNlpRequest = {
issueSummary: "how to retrieve certs from deleted keyvault.",
resourceId:
Expand All @@ -38,9 +36,11 @@ async function discoverySolutionsUsingIssueSummaryAndServiceId() {
discoverSolutionRequest,
};
const credential = new DefaultAzureCredential();
const client = new HelpRP(credential, subscriptionId);
const result =
await client.discoverySolutionNLPSubscriptionScope.post(options);
const client = new HelpRP(credential);
const result = await client.discoverySolutionNLPSubscriptionScope.post(
subscriptionId,
options,
);
console.log(result);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ dotenv.config();
async function discoverySolutionsUsingIssueSummaryAndServiceId() {
const discoverSolutionRequest: DiscoveryNlpRequest = {
issueSummary: "how to retrieve certs from deleted keyvault.",
resourceId:
"subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourceGroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read",
serviceId: "0d0fcd2e-c4fd-4349-8497-200edb39s3ca",
};
const options: DiscoverySolutionNLPTenantScopePostOptionalParams = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ dotenv.config();
* x-ms-original-file: specification/help/resource-manager/Microsoft.Help/preview/2024-03-01-preview/examples/ListOperations.json
*/
async function listAllOperations() {
const subscriptionId =
process.env["SELFHELP_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
const credential = new DefaultAzureCredential();
const client = new HelpRP(credential, subscriptionId);
const client = new HelpRP(credential);
const resArray = new Array();
for await (let item of client.operations.list()) {
resArray.push(item);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ require("dotenv").config();
* x-ms-original-file: specification/help/resource-manager/Microsoft.Help/preview/2024-03-01-preview/examples/DiscoverSolutionsAtSubscriptionScope.json
*/
async function discoverySolutionsUsingIssueSummaryAndServiceId() {
const subscriptionId =
process.env["SELFHELP_SUBSCRIPTION_ID"] || "0d0fcd2e-c4fd-4349-8497-200edb3923c6";
const subscriptionId = "0d0fcd2e-c4fd-4349-8497-200edb3923c6";
const discoverSolutionRequest = {
issueSummary: "how to retrieve certs from deleted keyvault.",
resourceId:
Expand All @@ -31,8 +30,8 @@ async function discoverySolutionsUsingIssueSummaryAndServiceId() {
discoverSolutionRequest,
};
const credential = new DefaultAzureCredential();
const client = new HelpRP(credential, subscriptionId);
const result = await client.discoverySolutionNLPSubscriptionScope.post(options);
const client = new HelpRP(credential);
const result = await client.discoverySolutionNLPSubscriptionScope.post(subscriptionId, options);
console.log(result);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ require("dotenv").config();
async function discoverySolutionsUsingIssueSummaryAndServiceId() {
const discoverSolutionRequest = {
issueSummary: "how to retrieve certs from deleted keyvault.",
resourceId:
"subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourceGroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read",
serviceId: "0d0fcd2e-c4fd-4349-8497-200edb39s3ca",
};
const options = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ require("dotenv").config();
* x-ms-original-file: specification/help/resource-manager/Microsoft.Help/preview/2024-03-01-preview/examples/ListOperations.json
*/
async function listAllOperations() {
const subscriptionId =
process.env["SELFHELP_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
const credential = new DefaultAzureCredential();
const client = new HelpRP(credential, subscriptionId);
const client = new HelpRP(credential);
const resArray = new Array();
for await (let item of client.operations.list()) {
resArray.push(item);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ dotenv.config();
* x-ms-original-file: specification/help/resource-manager/Microsoft.Help/preview/2024-03-01-preview/examples/DiscoverSolutionsAtSubscriptionScope.json
*/
async function discoverySolutionsUsingIssueSummaryAndServiceId() {
const subscriptionId =
process.env["SELFHELP_SUBSCRIPTION_ID"] ||
"0d0fcd2e-c4fd-4349-8497-200edb3923c6";
const subscriptionId = "0d0fcd2e-c4fd-4349-8497-200edb3923c6";
const discoverSolutionRequest: DiscoveryNlpRequest = {
issueSummary: "how to retrieve certs from deleted keyvault.",
resourceId:
Expand All @@ -38,9 +36,11 @@ async function discoverySolutionsUsingIssueSummaryAndServiceId() {
discoverSolutionRequest,
};
const credential = new DefaultAzureCredential();
const client = new HelpRP(credential, subscriptionId);
const result =
await client.discoverySolutionNLPSubscriptionScope.post(options);
const client = new HelpRP(credential);
const result = await client.discoverySolutionNLPSubscriptionScope.post(
subscriptionId,
options,
);
console.log(result);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ dotenv.config();
async function discoverySolutionsUsingIssueSummaryAndServiceId() {
const discoverSolutionRequest: DiscoveryNlpRequest = {
issueSummary: "how to retrieve certs from deleted keyvault.",
resourceId:
"subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourceGroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read",
serviceId: "0d0fcd2e-c4fd-4349-8497-200edb39s3ca",
};
const options: DiscoverySolutionNLPTenantScopePostOptionalParams = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ dotenv.config();
* x-ms-original-file: specification/help/resource-manager/Microsoft.Help/preview/2024-03-01-preview/examples/ListOperations.json
*/
async function listAllOperations() {
const subscriptionId =
process.env["SELFHELP_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
const credential = new DefaultAzureCredential();
const client = new HelpRP(credential, subscriptionId);
const client = new HelpRP(credential);
const resArray = new Array();
for await (let item of client.operations.list()) {
resArray.push(item);
Expand Down

0 comments on commit 1733bfa

Please sign in to comment.