Skip to content

Commit

Permalink
refresh 1 (#23821)
Browse files Browse the repository at this point in the history
* refresh 1

* update files

* update files

* update files

* update files

* update files

* update files

* update files

* update files
  • Loading branch information
kazrael2119 authored Nov 14, 2022
1 parent a381851 commit d2f1989
Show file tree
Hide file tree
Showing 41 changed files with 654 additions and 292 deletions.
34 changes: 18 additions & 16 deletions common/config/rush/pnpm-lock.yaml

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

20 changes: 9 additions & 11 deletions sdk/advisor/arm-advisor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# Release History

## 3.0.4 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes


## 3.1.0 (2022-11-14)

**Features**

- Added Interface ConfigData
- Added Interface ResourceRecommendationBase
- Added Interface SuppressionContract

## 3.0.3 (2022-10-08)

**Bugs Fixed**
Expand Down
6 changes: 3 additions & 3 deletions sdk/advisor/arm-advisor/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "54ee1a9eb50c13e0790627749f986c886ad4f4db",
"readme": "specification\\advisor\\resource-manager\\readme.md",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\advisor\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-beta.17 --generate-sample=true",
"autorest_command": "autorest --version=3.8.4 --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\\advisor\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.3.20221108.1 --generate-sample=true",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.2.1",
"use": "@autorest/typescript@6.0.0-beta.17"
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
"use": "@autorest/typescript@6.0.0-rc.3.20221108.1"
}
24 changes: 14 additions & 10 deletions sdk/advisor/arm-advisor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for AdvisorManagementClient.",
"version": "3.0.4",
"version": "3.1.0",
"engines": {
"node": ">=14.0.0"
},
"dependencies": {
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.0.0",
"@azure/core-client": "^1.6.1",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.1.0",
"@azure/core-rest-pipeline": "^1.8.0",
"tslib": "^2.2.0"
},
"keywords": [
Expand All @@ -34,13 +34,18 @@
"mkdirp": "^1.0.4",
"rollup": "^2.66.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~4.2.0",
"typescript": "~4.8.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^1.0.0",
"@azure-tools/test-recorder": "^2.0.0",
"@azure-tools/test-credential": "^1.0.0",
"mocha": "^7.1.1",
"cross-env": "^7.0.2"
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@types/node": "^14.0.0",
"@azure/dev-tool": "^1.0.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/advisor/arm-advisor",
"repository": {
Expand Down Expand Up @@ -91,9 +96,8 @@
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
"unit-test:browser": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
"integration-test:browser": "echo skipped",
"docs": "echo skipped"
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
"integration-test:browser": "echo skipped"
},
"sideEffects": false,
"//metadata": {
Expand All @@ -113,4 +117,4 @@
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-advisor?view=azure-node-preview"
}
}
}

This file was deleted.

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

72 changes: 28 additions & 44 deletions sdk/advisor/arm-advisor/review/arm-advisor.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ export interface ARMErrorResponseBody {
export type Category = string;

// @public
export type ConfigData = Resource & {
export interface ConfigData extends Resource {
digests?: DigestConfig[];
exclude?: boolean;
lowCpuThreshold?: CpuThreshold;
digests?: DigestConfig[];
};
}

// @public
export interface ConfigurationListResult {
Expand Down Expand Up @@ -125,72 +125,56 @@ export interface DigestConfig {
// @public
export type DigestConfigState = string;

// @public
export function getContinuationToken(page: unknown): string | undefined;

// @public
export type Impact = string;

// @public
export enum KnownCategory {
// (undocumented)
Cost = "Cost",
// (undocumented)
HighAvailability = "HighAvailability",
// (undocumented)
OperationalExcellence = "OperationalExcellence",
// (undocumented)
Performance = "Performance",
// (undocumented)
Security = "Security"
}

// @public
export enum KnownConfigurationName {
// (undocumented)
Default = "default"
}

// @public
export enum KnownCpuThreshold {
// (undocumented)
Fifteen = "15",
// (undocumented)
Five = "5",
// (undocumented)
Ten = "10",
// (undocumented)
Twenty = "20"
}

// @public
export enum KnownDigestConfigState {
// (undocumented)
Active = "Active",
// (undocumented)
Disabled = "Disabled"
}

// @public
export enum KnownImpact {
// (undocumented)
High = "High",
// (undocumented)
Low = "Low",
// (undocumented)
Medium = "Medium"
}

// @public
export enum KnownRisk {
// (undocumented)
Error = "Error",
// (undocumented)
None = "None",
// (undocumented)
Warning = "Warning"
}

// @public
export enum KnownScenario {
// (undocumented)
Alerts = "Alerts"
}

Expand Down Expand Up @@ -354,37 +338,37 @@ export interface ResourceMetadata {
}

// @public
export type ResourceRecommendationBase = Resource & {
export interface ResourceRecommendationBase extends Resource {
actions?: {
[propertyName: string]: Record<string, unknown>;
}[];
category?: Category;
impact?: Impact;
impactedField?: string;
impactedValue?: string;
lastUpdated?: Date;
metadata?: {
description?: string;
exposedMetadataProperties?: {
[propertyName: string]: Record<string, unknown>;
};
recommendationTypeId?: string;
risk?: Risk;
shortDescription?: ShortDescription;
suppressionIds?: string[];
extendedProperties?: {
[propertyName: string]: string;
};
resourceMetadata?: ResourceMetadata;
description?: string;
impact?: Impact;
impactedField?: string;
impactedValue?: string;
label?: string;
lastUpdated?: Date;
learnMoreLink?: string;
potentialBenefits?: string;
actions?: {
[propertyName: string]: Record<string, unknown>;
}[];
remediation?: {
metadata?: {
[propertyName: string]: Record<string, unknown>;
};
exposedMetadataProperties?: {
potentialBenefits?: string;
recommendationTypeId?: string;
remediation?: {
[propertyName: string]: Record<string, unknown>;
};
};
resourceMetadata?: ResourceMetadata;
risk?: Risk;
shortDescription?: ShortDescription;
suppressionIds?: string[];
}

// @public
export interface ResourceRecommendationBaseListResult {
Expand All @@ -405,11 +389,11 @@ export interface ShortDescription {
}

// @public
export type SuppressionContract = Resource & {
export interface SuppressionContract extends Resource {
readonly expirationTimeStamp?: Date;
suppressionId?: string;
ttl?: string;
readonly expirationTimeStamp?: Date;
};
}

// @public
export interface SuppressionContractListResult {
Expand Down
2 changes: 1 addition & 1 deletion sdk/advisor/arm-advisor/samples/v3/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"devDependencies": {
"@types/node": "^14.0.0",
"typescript": "~4.4.0",
"typescript": "~4.8.0",
"rimraf": "latest"
}
}
Loading

0 comments on commit d2f1989

Please sign in to comment.