Skip to content

Commit

Permalink
CodeGen from PR 31838 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 5ff1bdac4c21802a1401945539a7f7612aac962e into faebe07bdf8bab920fbecdef2426772179984932
  • Loading branch information
SDKAuto committed Dec 11, 2024
1 parent 9ecb01a commit b578cb9
Show file tree
Hide file tree
Showing 64 changed files with 1,131 additions and 3,954 deletions.
3 changes: 2 additions & 1 deletion common/config/rush/pnpm-lock.yaml

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

41 changes: 34 additions & 7 deletions sdk/computefleet/arm-computefleet/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,42 @@
# Release History

## 1.0.1 (Unreleased)

## 2.0.0 (2024-12-11)
### Features Added

### Breaking Changes
- Added Interface ErrorAdditionalInfo
- Added Interface ErrorDetail
- Added Interface ErrorResponse
- Added Enum KnownVersions
- Enum KnownManagedServiceIdentityType has a new value "SystemAssigned,UserAssigned"
- Enum KnownNetworkApiVersion has a new value v2020_11_01
- Enum KnownOrigin has a new value "user,system"
- Enum KnownOrigin has a new value system
- Enum KnownOrigin has a new value user
- Enum KnownStorageAccountTypes has a new value Premium_LRS
- Enum KnownStorageAccountTypes has a new value Premium_ZRS
- Enum KnownStorageAccountTypes has a new value PremiumV2_LRS
- Enum KnownStorageAccountTypes has a new value Standard_LRS
- Enum KnownStorageAccountTypes has a new value StandardSSD_LRS
- Enum KnownStorageAccountTypes has a new value StandardSSD_ZRS
- Enum KnownStorageAccountTypes has a new value UltraSSD_LRS

### Bugs Fixed

### Other Changes
### Breaking Changes

- Enum KnownManagedServiceIdentityType no longer has value SystemAssignedUserAssigned
- Enum KnownNetworkApiVersion no longer has value V20201101
- Enum KnownOrigin no longer has value System
- Enum KnownOrigin no longer has value User
- Enum KnownOrigin no longer has value UserSystem
- Enum KnownStorageAccountTypes no longer has value PremiumLRS
- Enum KnownStorageAccountTypes no longer has value PremiumV2LRS
- Enum KnownStorageAccountTypes no longer has value PremiumZRS
- Enum KnownStorageAccountTypes no longer has value StandardLRS
- Enum KnownStorageAccountTypes no longer has value StandardSSDLRS
- Enum KnownStorageAccountTypes no longer has value StandardSSDZRS
- Enum KnownStorageAccountTypes no longer has value UltraSSDLRS


## 1.0.0 (2024-10-21)

### Features Added
Expand Down
11 changes: 6 additions & 5 deletions sdk/computefleet/arm-computefleet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureFleet client.

Azure Fleet Service

[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/computefleet/arm-computefleet) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-computefleet) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-computefleet?view=azure-node-preview) |

Key links:

- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/computefleet/arm-computefleet)
- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-computefleet)
- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-computefleet?view=azure-node-preview)

## Getting started

Expand Down Expand Up @@ -43,7 +45,6 @@ npm install @azure/identity
```

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

For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).

Expand Down
6 changes: 0 additions & 6 deletions sdk/computefleet/arm-computefleet/assets.json

This file was deleted.

11 changes: 6 additions & 5 deletions sdk/computefleet/arm-computefleet/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";

export default azsdkEslint.config([
export default [
...azsdkEslint.configs.recommended,
{
rules: {
"@azure/azure-sdk/ts-modules-only-named": "warn",
"@azure/azure-sdk/ts-apiextractor-json-types": "warn",
"@azure/azure-sdk/ts-package-json-types": "warn",
"@azure/azure-sdk/ts-package-json-engine-is-present": "warn",
"tsdoc/syntax": "warn",
"@azure/azure-sdk/ts-package-json-module": "off",
"@azure/azure-sdk/ts-package-json-files-required": "off",
"@azure/azure-sdk/ts-package-json-main-is-cjs": "off",
},
},
]);
"tsdoc/syntax": "warn"
}
}
];
41 changes: 14 additions & 27 deletions sdk/computefleet/arm-computefleet/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@azure/arm-computefleet",
"version": "1.0.1",
"description": "Azure Fleet Service",
"version": "2.0.0",
"description": "A generated SDK for AzureFleetClient.",
"engines": {
"node": ">=18.0.0"
},
Expand Down Expand Up @@ -46,6 +46,7 @@
"bugs": {
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/computefleet/arm-computefleet/README.md",
"prettier": "@azure/eslint-plugin-azure-sdk/prettier.json",
"//metadata": {
"constantPaths": [
Expand All @@ -57,7 +58,7 @@
},
"dependencies": {
"@azure/core-util": "^1.9.2",
"@azure-rest/core-client": "^2.1.0",
"@azure-rest/core-client": "^2.3.1",
"@azure/core-auth": "^1.6.0",
"@azure/core-rest-pipeline": "^1.5.0",
"@azure/logger": "^1.0.0",
Expand All @@ -67,6 +68,7 @@
},
"devDependencies": {
"dotenv": "^16.0.0",
"@microsoft/api-extractor": "^7.40.3",
"@types/node": "^18.0.0",
"eslint": "^9.9.0",
"typescript": "~5.6.2",
Expand All @@ -82,78 +84,63 @@
},
"scripts": {
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"extract-api": "dev-tool run vendored rimraf review && mkdirp ./review && dev-tool run extract-api",
"extract-api": "dev-tool run vendored rimraf review && dev-tool run vendored mkdirp ./review && dev-tool run extract-api",
"pack": "npm pack 2>&1",
"lint": "echo skipped",
"lint:fix": "echo skipped",
"lint": "eslint package.json api-extractor.json src test",
"lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"unit-test:browser": "npm run build:test && dev-tool run test:vitest --browser",
"unit-test:node": "dev-tool run test:vitest",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:browser": "echo skipped",
"integration-test:node": "echo skipped",
"build:samples": "dev-tool run typecheck --paths samples-dev/*.ts && dev-tool samples publish -f",
"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\"",
"execute:samples": "dev-tool samples run samples-dev",
"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\"",
"build:samples": "echo skipped",
"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}\" ",
"execute:samples": "echo skipped",
"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}\" ",
"generate:client": "echo skipped",
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser",
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test",
"build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api",
"test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node",
"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"
},
"//sampleConfiguration": {
"productName": "@azure/arm-computefleet",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-computefleet?view=azure-node-preview"
"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",
"update-snippets": "echo skipped"
},
"exports": {
"./package.json": "./package.json",
".": {
"browser": {
"source": "./src/index.ts",
"types": "./dist/browser/index.d.ts",
"default": "./dist/browser/index.js"
},
"react-native": {
"source": "./src/index.ts",
"types": "./dist/react-native/index.d.ts",
"default": "./dist/react-native/index.js"
},
"import": {
"source": "./src/index.ts",
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"source": "./src/index.ts",
"types": "./dist/commonjs/index.d.ts",
"default": "./dist/commonjs/index.js"
}
},
"./models": {
"browser": {
"source": "./src/models/index.ts",
"types": "./dist/browser/models/index.d.ts",
"default": "./dist/browser/models/index.js"
},
"react-native": {
"source": "./src/models/index.ts",
"types": "./dist/react-native/models/index.d.ts",
"default": "./dist/react-native/models/index.js"
},
"import": {
"source": "./src/models/index.ts",
"types": "./dist/esm/models/index.d.ts",
"default": "./dist/esm/models/index.js"
},
"require": {
"source": "./src/models/index.ts",
"types": "./dist/commonjs/models/index.d.ts",
"default": "./dist/commonjs/models/index.js"
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,26 @@ export interface EncryptionIdentity {
userAssignedIdentityResourceId?: string;
}

// @public
export interface ErrorAdditionalInfo {
readonly info?: Record<string, any>;
readonly type?: string;
}

// @public
export interface ErrorDetail {
readonly additionalInfo?: ErrorAdditionalInfo[];
readonly code?: string;
readonly details?: ErrorDetail[];
readonly message?: string;
readonly target?: string;
}

// @public
export interface ErrorResponse {
error?: ErrorDetail;
}

// @public
export type EvictionPolicy = string;

Expand Down Expand Up @@ -343,9 +363,9 @@ export enum KnownLocalStorageDiskType {

// @public
export enum KnownManagedServiceIdentityType {
"SystemAssigned,UserAssigned" = "SystemAssigned,UserAssigned",
None = "None",
SystemAssigned = "SystemAssigned",
SystemAssignedUserAssigned = "SystemAssigned,UserAssigned",
UserAssigned = "UserAssigned"
}

Expand All @@ -357,7 +377,7 @@ export enum KnownMode {

// @public
export enum KnownNetworkApiVersion {
V20201101 = "2020-11-01"
v2020_11_01 = "2020-11-01"
}

// @public
Expand All @@ -384,9 +404,9 @@ export enum KnownOperatingSystemTypes {

// @public
export enum KnownOrigin {
System = "system",
User = "user",
UserSystem = "user,system"
"user,system" = "user,system",
system = "system",
user = "user"
}

// @public
Expand Down Expand Up @@ -452,13 +472,18 @@ export enum KnownSpotAllocationStrategy {

// @public
export enum KnownStorageAccountTypes {
PremiumLRS = "Premium_LRS",
PremiumV2LRS = "PremiumV2_LRS",
PremiumZRS = "Premium_ZRS",
StandardLRS = "Standard_LRS",
StandardSSDLRS = "StandardSSD_LRS",
StandardSSDZRS = "StandardSSD_ZRS",
UltraSSDLRS = "UltraSSD_LRS"
Premium_LRS = "Premium_LRS",
Premium_ZRS = "Premium_ZRS",
PremiumV2_LRS = "PremiumV2_LRS",
Standard_LRS = "Standard_LRS",
StandardSSD_LRS = "StandardSSD_LRS",
StandardSSD_ZRS = "StandardSSD_ZRS",
UltraSSD_LRS = "UltraSSD_LRS"
}

// @public
export enum KnownVersions {
v2024_11_01 = "2024-11-01"
}

// @public
Expand Down
Loading

0 comments on commit b578cb9

Please sign in to comment.