Skip to content

[AutoPR @azure/arm-apicenter] test pipeline v2 for js automation #14858

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
218 changes: 19 additions & 199 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

97 changes: 89 additions & 8 deletions sdk/apicenter/arm-apicenter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,96 @@
# Release History

## 1.0.1 (Unreleased)


## 2.0.0-beta.1 (2025-04-10)
Compared with version 1.0.0

### Features Added

### Breaking Changes
- Added operation group ApiSources
- Added operation group DeletedServices
- Added Interface ApiSource
- Added Interface ApiSourceListResult
- Added Interface ApiSourcesCreateOrUpdateHeaders
- Added Interface ApiSourcesCreateOrUpdateOptionalParams
- Added Interface ApiSourcesDeleteOptionalParams
- Added Interface ApiSourcesGetHeaders
- Added Interface ApiSourcesGetOptionalParams
- Added Interface ApiSourcesHeadOptionalParams
- Added Interface ApiSourcesListNextOptionalParams
- Added Interface ApiSourcesListOptionalParams
- Added Interface AzureApiManagementSource
- Added Interface DeletedService
- Added Interface DeletedServiceListResult
- Added Interface DeletedServicesDeleteOptionalParams
- Added Interface DeletedServicesGetHeaders
- Added Interface DeletedServicesGetOptionalParams
- Added Interface DeletedServicesListBySubscriptionNextOptionalParams
- Added Interface DeletedServicesListBySubscriptionOptionalParams
- Added Interface DeletedServicesListNextOptionalParams
- Added Interface DeletedServicesListOptionalParams
- Added Interface LinkState
- Added Type Alias ApiSourceLinkState
- Added Type Alias ApiSourcesCreateOrUpdateResponse
- Added Type Alias ApiSourcesGetResponse
- Added Type Alias ApiSourcesHeadResponse
- Added Type Alias ApiSourcesListNextResponse
- Added Type Alias ApiSourcesListResponse
- Added Type Alias DeletedServicesGetResponse
- Added Type Alias DeletedServicesListBySubscriptionNextResponse
- Added Type Alias DeletedServicesListBySubscriptionResponse
- Added Type Alias DeletedServicesListNextResponse
- Added Type Alias DeletedServicesListResponse
- Added Type Alias ImportSpecificationOptions
- Interface Api has a new optional parameter contacts
- Interface Api has a new optional parameter customProperties
- Interface Api has a new optional parameter description
- Interface Api has a new optional parameter externalDocumentation
- Interface Api has a new optional parameter kind
- Interface Api has a new optional parameter license
- Interface Api has a new optional parameter lifecycleStage
- Interface Api has a new optional parameter summary
- Interface Api has a new optional parameter termsOfService
- Interface Api has a new optional parameter title
- Interface ApiDefinition has a new optional parameter description
- Interface ApiDefinition has a new optional parameter specification
- Interface ApiDefinition has a new optional parameter title
- Interface ApiVersion has a new optional parameter lifecycleStage
- Interface ApiVersion has a new optional parameter title
- Interface Deployment has a new optional parameter customProperties
- Interface Deployment has a new optional parameter definitionId
- Interface Deployment has a new optional parameter description
- Interface Deployment has a new optional parameter environmentId
- Interface Deployment has a new optional parameter server
- Interface Deployment has a new optional parameter state
- Interface Deployment has a new optional parameter title
- Interface Environment has a new optional parameter customProperties
- Interface Environment has a new optional parameter description
- Interface Environment has a new optional parameter kind
- Interface Environment has a new optional parameter onboarding
- Interface Environment has a new optional parameter server
- Interface Environment has a new optional parameter title
- Interface MetadataSchema has a new optional parameter assignedTo
- Interface MetadataSchema has a new optional parameter schema
- Interface Service has a new optional parameter provisioningState
- Interface Service has a new optional parameter restore
- Interface ServiceUpdate has a new optional parameter restore
- Interface Workspace has a new optional parameter description
- Interface Workspace has a new optional parameter title
- Added Enum KnownApiSourceLinkState
- Added Enum KnownImportSpecificationOptions

### Bugs Fixed

### Other Changes
### Breaking Changes

- Interface Api no longer has parameter properties
- Interface ApiDefinition no longer has parameter properties
- Interface ApiVersion no longer has parameter properties
- Interface Deployment no longer has parameter properties
- Interface Environment no longer has parameter properties
- Interface MetadataSchema no longer has parameter properties
- Interface Service no longer has parameter properties
- Interface Workspace no longer has parameter properties
- Removed Enum KnownVersions


## 1.0.0 (2024-02-21)

The package of @azure/arm-apicenter 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-apicenter 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/apicenter/arm-apicenter/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
10 changes: 3 additions & 7 deletions sdk/apicenter/arm-apicenter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Azure API Center Resource Provider.

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

## Getting started
Expand Down Expand Up @@ -44,7 +44,6 @@ npm install @azure/identity
```

You will also need to **register a new AAD application and grant access to AzureApiCenter** 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://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).

Expand All @@ -64,16 +63,14 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
import { InteractiveBrowserCredential } from "@azure/identity";
import { AzureAPICenter } from "@azure/arm-apicenter";

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const credential = new InteractiveBrowserCredential({
tenantId: "<YOUR_TENANT_ID>",
clientId: "<YOUR_CLIENT_ID>",
});
clientId: "<YOUR_CLIENT_ID>"
});
const client = new AzureAPICenter(credential, subscriptionId);
```

### JavaScript Bundle

To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).

## Key concepts
Expand Down Expand Up @@ -109,7 +106,6 @@ If you'd like to contribute to this library, please read the [contributing guide
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)



[azure_cli]: https://learn.microsoft.com/cli/azure
[azure_sub]: https://azure.microsoft.com/free/
[azure_sub]: https://azure.microsoft.com/free/
Expand Down
10 changes: 5 additions & 5 deletions sdk/apicenter/arm-apicenter/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "d4205894880b989ede35d62d97c8e901ed14fb5a",
"commit": "a261456a96d704058778a49a1140435019fec7f2",
"readme": "specification/apicenter/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\\apicenter\\resource-manager\\readme.md --use=@autorest/[email protected].15 --generate-sample=true",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/[email protected].4",
"use": "@autorest/[email protected].15"
"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/apicenter/resource-manager/readme.md --use=@autorest/typescript@^6.0.12",
"repository_url": "https://github.com/test-repo-billy/azure-rest-api-specs.git",
"release_tool": "@azure-tools/[email protected].23",
"use": "@autorest/typescript@^6.0.12"
}
6 changes: 3 additions & 3 deletions sdk/apicenter/arm-apicenter/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "dist/esm/index.d.ts",
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"docModel": {
"enabled": true
},
Expand All @@ -11,7 +11,7 @@
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "dist/arm-apicenter.d.ts"
"publicTrimmedFilePath": "./types/arm-apicenter.d.ts"
},
"messages": {
"tsdocMessageReporting": {
Expand All @@ -28,4 +28,4 @@
}
}
}
}
}
47 changes: 29 additions & 18 deletions sdk/apicenter/arm-apicenter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,44 +3,49 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for AzureAPICenter.",
"version": "1.0.1",
"version": "2.0.0-beta.1",
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@azure/abort-controller": "^2.1.2",
"@azure/core-auth": "^1.9.0",
"@azure/core-client": "^1.9.2",
"@azure/core-lro": "^2.7.2",
"@azure/core-client": "^1.9.3",
"@azure/core-lro": "^2.5.4",
"@azure/core-paging": "^1.6.2",
"@azure/core-rest-pipeline": "^1.18.0",
"@azure/core-rest-pipeline": "^1.19.1",
"tslib": "^2.8.1"
},
"keywords": [
"node",
"azure",
"typescript",
"browser",
"isomorphic",
"cloud"
"isomorphic"
],
"license": "MIT",
"main": "./dist/commonjs/index.js",
"module": "./dist/esm/index.js",
"module": "./dist-esm/src/index.js",
"types": "./dist/commonjs/index.d.ts",
"devDependencies": {
"@azure-tools/test-credential": "^2.0.0",
"@azure-tools/test-recorder": "^4.1.0",
"@azure-tools/test-utils-vitest": "^1.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.0.1",
"@azure/identity": "^4.8.0",
"@azure/logger": "^1.1.4",
"@types/node": "^18.0.0",
"@vitest/browser": "^3.0.9",
"@vitest/coverage-istanbul": "^3.0.9",
"dotenv": "^16.0.0",
"playwright": "^1.51.1",
"typescript": "~5.8.2",
"vitest": "^3.0.9"
},
"repository": "github:Azure/azure-sdk-for-js",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": {
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
Expand Down Expand Up @@ -88,14 +93,6 @@
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/apicenter/arm-apicenter",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-apicenter?view=azure-node-preview"
},
"type": "module",
"tshy": {
"project": "./tsconfig.src.json",
Expand All @@ -107,11 +104,25 @@
"esm",
"commonjs"
],
"esmDialects": [
"browser",
"react-native"
],
"selfLink": false
},
"browser": "./dist/browser/index.js",
"react-native": "./dist/react-native/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"browser": {
"types": "./dist/browser/index.d.ts",
"default": "./dist/browser/index.js"
},
"react-native": {
"types": "./dist/react-native/index.d.ts",
"default": "./dist/react-native/index.js"
},
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
Expand All @@ -122,4 +133,4 @@
}
}
}
}
}
Loading