Skip to content

Commit

Permalink
CodeGen from PR 31527 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 6d3e3f138bef146d09e2a331b92e8c517032fbcb into e838027e88cca634c1545e744630de9262a6e72a
  • Loading branch information
SDKAuto committed Nov 18, 2024
1 parent 43142d2 commit 23de37c
Show file tree
Hide file tree
Showing 38 changed files with 1,147 additions and 1,092 deletions.
10 changes: 7 additions & 3 deletions common/config/rush/pnpm-lock.yaml

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

29 changes: 19 additions & 10 deletions sdk/automanage/arm-automanage/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
# Release History

## 1.0.3 (2023-01-11)

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

- Exposes `getContinuationToken` helper function to extract continuation token

### Bugs Fixed

- A series of small bug fixs relevant to authentication and apiVersion policy

- Added Interface AssignmentReportProperties
- Added Interface Report_2
- Added Interface ReportList_2
- Added Interface ServicePrincipalProperties
- Interface BestPractice has a new optional parameter properties
- Interface ServicePrincipal has a new optional parameter properties
- Added function getContinuationToken

### Breaking Changes

- Class AutomanageClient has a new signature
- Interface BestPractice no longer has parameter configuration
- Interface ServicePrincipal no longer has parameter authorizationSet
- Interface ServicePrincipal no longer has parameter servicePrincipalId

## 1.0.2 (2022-10-08)

### Bugs Fixed
Expand All @@ -24,4 +33,4 @@

## 1.0.0 (2022-08-03)

The package of @azure/arm-automanage is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
The package of @azure/arm-automanage is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).
2 changes: 1 addition & 1 deletion sdk/automanage/arm-automanage/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2023 Microsoft
Copyright (c) 2024 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
10 changes: 5 additions & 5 deletions sdk/automanage/arm-automanage/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "1dd79c416cdccde274113ec03b92b75069fad464",
"readme": "specification\\automanage\\resource-manager\\readme.md",
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\automanage\\resource-manager\\readme.md --use=@autorest/[email protected].0-rc.6.20221226.1 --generate-sample=true",
"commit": "71672e845eba644312dbfa6f44d3a6a5993a635b",
"readme": "specification/automanage/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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/automanage/resource-manager/readme.md --use=@autorest/typescript@^6.0.12",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.5.4",
"use": "@autorest/[email protected].0-rc.6.20221226.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.16",
"use": "@autorest/typescript@^6.0.12"
}
68 changes: 32 additions & 36 deletions sdk/automanage/arm-automanage/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 AutomanageClient.",
"version": "1.0.3",
"version": "2.0.0",
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@azure/core-auth": "^1.3.0",
"@azure/core-client": "^1.6.1",
"@azure/core-paging": "^1.2.0",
"@azure/core-rest-pipeline": "^1.8.0",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.6.0",
"@azure/core-rest-pipeline": "^1.14.0",
"tslib": "^2.2.0"
},
"keywords": [
Expand All @@ -26,18 +26,22 @@
"module": "./dist-esm/src/index.js",
"types": "./types/arm-automanage.d.ts",
"devDependencies": {
"@azure-tools/test-credential": "^1.0.0",
"@azure-tools/test-recorder": "^3.0.0",
"@microsoft/api-extractor": "^7.31.1",
"typescript": "~5.6.2",
"uglify-js": "^3.4.9",
"dotenv": "^16.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.0.1",
"@types/chai": "^4.2.8",
"@azure/identity": "^4.2.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.1.0",
"mocha": "^10.0.0",
"@types/mocha": "^10.0.0",
"@types/node": "^18.0.0",
"tsx": "^4.7.1",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"dotenv": "^16.0.0",
"mocha": "^10.0.0",
"ts-node": "^10.0.0",
"typescript": "~5.6.2"
"cross-env": "^7.0.2",
"@types/node": "^18.0.0",
"ts-node": "^10.0.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -65,28 +69,28 @@
],
"scripts": {
"build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api",
"build:browser": "echo skipped",
"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",
"lint": "echo skipped",
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"build:node": "echo skipped",
"build:samples": "echo skipped.",
"build:browser": "echo skipped",
"build:test": "echo skipped",
"build:samples": "echo skipped.",
"check-format": "echo skipped",
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"execute:samples": "echo skipped",
"extract-api": "dev-tool run extract-api",
"format": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:browser": "echo skipped",
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
"lint": "echo skipped",
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"pack": "npm pack 2>&1",
"prepack": "npm run build",
"test": "npm run integration-test",
"test:browser": "echo skipped",
"test:node": "echo skipped",
"test:browser": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
"unit-test:browser": "echo skipped",
"unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
"integration-test:browser": "echo skipped",
"update-snippets": "echo skipped"
},
"sideEffects": false,
Expand All @@ -99,13 +103,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/automanage/arm-automanage",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-automanage?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/automanage/arm-automanage"
}
39 changes: 25 additions & 14 deletions sdk/automanage/arm-automanage/review/arm-automanage.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,26 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging';
// @public
export type ActionType = string;

// @public
export interface AssignmentReportProperties {
readonly configurationProfile?: string;
readonly duration?: string;
endTime?: string;
readonly error?: ErrorDetail;
readonly lastModifiedTime?: string;
readonly reportFormatVersion?: string;
readonly resources?: ReportResource[];
startTime?: string;
readonly status?: string;
readonly type?: string;
}

// @public (undocumented)
export class AutomanageClient extends coreClient.ServiceClient {
// (undocumented)
$host: string;
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AutomanageClientOptionalParams);
constructor(credentials: coreAuth.TokenCredential, options?: AutomanageClientOptionalParams);
// (undocumented)
apiVersion: string;
// (undocumented)
Expand Down Expand Up @@ -43,7 +58,7 @@ export class AutomanageClient extends coreClient.ServiceClient {
// (undocumented)
servicePrincipals: ServicePrincipals;
// (undocumented)
subscriptionId: string;
subscriptionId?: string;
}

// @public
Expand All @@ -55,9 +70,9 @@ export interface AutomanageClientOptionalParams extends coreClient.ServiceClient

// @public
export interface BestPractice {
configuration?: Record<string, unknown>;
readonly id?: string;
readonly name?: string;
properties?: ConfigurationProfileProperties;
readonly systemData?: SystemData;
readonly type?: string;
}
Expand Down Expand Up @@ -474,17 +489,8 @@ export interface ProxyResource extends Resource {

// @public
interface Report_2 extends ProxyResource {
readonly configurationProfile?: string;
readonly duration?: string;
endTime?: string;
readonly error?: ErrorDetail;
readonly lastModifiedTime?: string;
readonly reportFormatVersion?: string;
readonly resources?: ReportResource[];
startTime?: string;
readonly status?: string;
properties?: AssignmentReportProperties;
readonly systemData?: SystemData;
readonly typePropertiesType?: string;
}
export { Report_2 as Report }

Expand Down Expand Up @@ -532,8 +538,7 @@ export interface Resource {

// @public
export interface ServicePrincipal extends ProxyResource {
readonly authorizationSet?: boolean;
readonly servicePrincipalId?: string;
properties?: ServicePrincipalProperties;
readonly systemData?: SystemData;
}

Expand All @@ -542,6 +547,12 @@ export interface ServicePrincipalListResult {
value?: ServicePrincipal[];
}

// @public
export interface ServicePrincipalProperties {
readonly authorizationSet?: boolean;
readonly servicePrincipalId?: string;
}

// @public
export interface ServicePrincipals {
get(options?: ServicePrincipalsGetOptionalParams): Promise<ServicePrincipalsGetResponse>;
Expand Down
5 changes: 1 addition & 4 deletions sdk/automanage/arm-automanage/sample.env
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
# App registration secret for AAD authentication
AZURE_CLIENT_SECRET=
AZURE_CLIENT_ID=
AZURE_TENANT_ID=
# Feel free to add your own environment variables.
Loading

0 comments on commit 23de37c

Please sign in to comment.