Skip to content

Commit

Permalink
CodeGen from PR 31825 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge edcf57995e73f9662a4060586f0308bb999d7493 into 494d37ef9b1ab34ebab08c00da5675302594dc78
  • Loading branch information
SDKAuto committed Dec 10, 2024
1 parent 53155a8 commit a189c25
Show file tree
Hide file tree
Showing 68 changed files with 807 additions and 2,822 deletions.
5 changes: 3 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.

20 changes: 2 additions & 18 deletions sdk/computeschedule/arm-computeschedule/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
# Release History

## 1.0.0-beta.3 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 1.0.0-beta.2 (2024-11-04)

### Bugs Fixed

- Fix missing package information issue in user agent

## 1.0.0-beta.1 (2024-09-20)
## 1.0.0 (2024-12-10)

### Features Added

Initial release of the Azure ComputeSchedule package
The package of @azure/arm-computeschedule is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).
8 changes: 5 additions & 3 deletions sdk/computeschedule/arm-computeschedule/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f

Microsoft.ComputeSchedule Resource Provider management API.

[Package (NPM)](https://www.npmjs.com/package/@azure/arm-computeschedule) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-computeschedule?view=azure-node-preview) |
Key links:

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

## Getting started

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

You will also need to **register a new AAD application and grant access to Azure ComputeSchedule** 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/computeschedule/arm-computeschedule/assets.json

This file was deleted.

11 changes: 6 additions & 5 deletions sdk/computeschedule/arm-computeschedule/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
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",
Expand All @@ -10,7 +11,7 @@ export default azsdkEslint.config([
"@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",
},
},
]);
"tsdoc/syntax": "warn"
}
}
];
30 changes: 12 additions & 18 deletions sdk/computeschedule/arm-computeschedule/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure/arm-computeschedule",
"version": "1.0.0-beta.3",
"version": "1.0.0",
"description": "A generated SDK for ComputeScheduleClient.",
"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/computeschedule/arm-computeschedule/README.md",
"prettier": "@azure/eslint-plugin-azure-sdk/prettier.json",
"//metadata": {
"constantPaths": [
Expand All @@ -57,17 +58,17 @@
},
"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",
"tslib": "^2.6.2"
},
"devDependencies": {
"dotenv": "^16.0.0",
"@microsoft/api-extractor": "^7.40.3",
"@types/node": "^18.0.0",
"eslint": "^9.9.0",
"prettier": "^3.2.5",
"typescript": "~5.6.2",
"@azure/identity": "^4.2.1",
"@vitest/browser": "^2.0.5",
Expand All @@ -83,33 +84,26 @@
"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 && 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-computeschedule",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-computeschedule?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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
```ts

import { OperationOptions } from '@azure-rest/core-client';

// @public
export type ActionType = string;

Expand All @@ -31,6 +29,26 @@ export interface DeallocateResourceOperationResponse {
type: 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 interface ExecuteDeallocateRequest {
correlationid: string;
Expand Down Expand Up @@ -121,9 +139,9 @@ export enum KnownOptimizationPreference {

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

// @public
Expand All @@ -134,6 +152,11 @@ export enum KnownResourceOperationType {
Unknown = "Unknown"
}

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

// @public
export interface Operation {
actionType?: ActionType;
Expand All @@ -153,10 +176,12 @@ export interface OperationDisplay {

// @public
export interface OperationErrorDetails {
crpOperationId: string;
azureOperationName?: string;
crpOperationId?: string;
errorCode: string;
errorDetails: string;
timeStamp: string;
timeStamp?: string;
timestamp?: string;
}

// @public
Expand All @@ -170,10 +195,6 @@ export interface OperationErrorsResult {
requestErrorDetails?: string;
}

// @public
export interface OperationsListOptionalParams extends OperationOptions {
}

// @public
export type OperationState = string;

Expand All @@ -194,16 +215,17 @@ export interface ResourceOperation {
// @public
export interface ResourceOperationDetails {
completedAt?: string;
deadline: string;
deadlineType: DeadlineType;
deadline?: string;
deadlineType?: DeadlineType;
operationId: string;
opType: ResourceOperationType;
resourceId: string;
opType?: ResourceOperationType;
resourceId?: string;
resourceOperationError?: ResourceOperationError;
retryPolicy?: RetryPolicy;
state: OperationState;
subscriptionId: string;
state?: OperationState;
subscriptionId?: string;
timeZone?: string;
timezone?: string;
}

// @public
Expand All @@ -228,45 +250,11 @@ export interface RetryPolicy {

// @public
export interface Schedule {
deadLine: string;
deadLine?: string;
deadline?: string;
deadlineType: DeadlineType;
timeZone: string;
}

// @public
export interface ScheduledActionsVirtualMachinesCancelOperationsOptionalParams extends OperationOptions {
}

// @public
export interface ScheduledActionsVirtualMachinesExecuteDeallocateOptionalParams extends OperationOptions {
}

// @public
export interface ScheduledActionsVirtualMachinesExecuteHibernateOptionalParams extends OperationOptions {
}

// @public
export interface ScheduledActionsVirtualMachinesExecuteStartOptionalParams extends OperationOptions {
}

// @public
export interface ScheduledActionsVirtualMachinesGetOperationErrorsOptionalParams extends OperationOptions {
}

// @public
export interface ScheduledActionsVirtualMachinesGetOperationStatusOptionalParams extends OperationOptions {
}

// @public
export interface ScheduledActionsVirtualMachinesSubmitDeallocateOptionalParams extends OperationOptions {
}

// @public
export interface ScheduledActionsVirtualMachinesSubmitHibernateOptionalParams extends OperationOptions {
}

// @public
export interface ScheduledActionsVirtualMachinesSubmitStartOptionalParams extends OperationOptions {
timeZone?: string;
timezone?: string;
}

// @public
Expand Down
Loading

0 comments on commit a189c25

Please sign in to comment.