[AutoPR @azure-arm-mongocluster]-generated-from-SDK Generation - JS-6321205#38593
Conversation
…t.DocumentDB/MongoCluster/tspconfig.yaml', and CommitSHA: 'b59aeff7f87d58a631c71fb0533f99ed91d54d71' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6321205 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
There was a problem hiding this comment.
Pull request overview
This is an auto-generated SDK regeneration PR for @azure/arm-mongocluster, bumping to beta version 1.2.0-beta.1 against TypeSpec commit b59aeff and targeting the 2026-02-01-preview API version. It adds a new networkBypassMode property on Mongo cluster, exposes several historical preview API versions in KnownVersions, and updates internal infrastructure (api-version application, LRO restore, paging POST support).
Changes:
- Add
networkBypassMode(andKnownNetworkBypassMode) toMongoClusterProperties/MongoClusterUpdateProperties; expose moreKnownVersionsentries up throughV20260201Preview. - Replace the client-side
ClientApiVersionPolicywith per-call api-version fallback (context.apiVersion ?? "2026-02-01-preview"); addapiVersionplumbing ingetLongRunningPoller/buildPagedAsyncIteratorand anextLinkMethodPOST option; haverestorePollerrecover api-version from the initial URL. - Tooling-driven re-emission: type-only re-exports, removal of
@fixme deletecomments, URL templatenormalizeUnreserved, samples moved tov1-beta, samples references updated to2026-02-01-preview, and various expected-status set additions ("201").
Reviewed changes
Copilot reviewed 116 out of 118 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| package.json, CHANGELOG.md, metadata.json | Beta version bump, new emitter metadata, networkBypassMode enum mapping; #platform/* import map switched to *.js/*.mjs with react-native condition. |
| review/arm-mongocluster-*.api.md | Public API now exports RestError/isRestError, new NetworkBypassMode & KnownNetworkBypassMode, added api versions, apiVersion made optional on context. |
| src/api/mongoClusterManagementContext.ts | Removed ClientApiVersionPolicy; apiVersion is now optional and forwarded via per-operation send; scopes hardcoded to https://management.azure.com/.default. |
| src/api/**/operations.ts | Pass context.apiVersion ?? "2026-02-01-preview" to URL template and to pollers/paged iterators; mongoClusters.update/promote accept 201; createOrUpdate switches LRO resourceLocationConfig to original-uri. |
| src/static-helpers/pollingHelpers.ts, pagingHelpers.ts | Accept optional apiVersion; append it to polling/next-link URLs if missing; pagination supports nextLinkMethod: "POST". |
| src/static-helpers/urlTemplate.ts | After expansion, decode percent-encoded RFC3986 unreserved chars (-, ., ~) via new normalizeUnreserved. |
| src/restorePollerHelpers.ts | Extract api-version from initialRequestUrl and pass through; widened expected statuses for promote/update; replaced Function typing with concrete signature. |
| src/models/models.ts, src/models/index.ts, src/index.ts | New networkBypassMode field + serializers; expanded KnownVersions; broad export type reshuffle; re-export RestError/isRestError. |
| src/classic//index.ts, src/api//index.ts | Drop @fixme delete comments; convert mixed exports to export type blocks. |
| src/mongoClusterManagementClient.ts | Use export type { ... }. |
| warp.config.yml | Inline exports map for all subpath entry points (overriding base). |
| tsp-location.yaml | Updated TypeSpec commit. |
| samples/v1-beta/, samples-dev/ | New v1-beta sample tree (replaces v1); x-ms-original-file refs bumped to 2026-02-01-preview; new MongoClusters_PatchNetworkBypassMode sample; passwords scrubbed to "********"; fixed truncated subscriptionId and checksAndConfirmsTheMongoClusterNameIsAvailableForUse typo. |
| samples/v1/typescript/tsconfig.json | Deleted old v1 sample tsconfig. |
| .github/CODEOWNERS | Added %mgmt-review-needed label trigger for this package. |
|
LGTM |
|
Now this pr has a Management Release Assistant / agent failure, this failure is from our review agent and should not be a merge blocker, so you can merge this pr after the approval from Jialin. |
Configurations: 'specification/mongocluster/resource-manager/Microsoft.DocumentDB/MongoCluster/tspconfig.yaml', and CommitSHA: 'b59aeff7f87d58a631c71fb0533f99ed91d54d71' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6321205 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. Release plan link: https://azsdk-releaseplan-dashboard-hveph5aqhhcfhtgu.westus-01.azurewebsites.net/?releaseplan=2198 Submitted by: olivert@microsoft.com
Release Plan Details
Spec pull request: Add 2026-02-01-preview API version for Microsoft.DocumentDB MongoCluster azure-rest-api-specs#42564
Spec API version: 2026-02-01-preview