Skip to content

[AutoPR @azure-arm-mongocluster]-generated-from-SDK Generation - JS-6321205#38593

Merged
olivertowers merged 2 commits into
mainfrom
sdkauto/@azure-arm-mongocluster-6321205
May 21, 2026
Merged

[AutoPR @azure-arm-mongocluster]-generated-from-SDK Generation - JS-6321205#38593
olivertowers merged 2 commits into
mainfrom
sdkauto/@azure-arm-mongocluster-6321205

Conversation

@azure-sdk

@azure-sdk azure-sdk commented May 19, 2026

Copy link
Copy Markdown
Collaborator

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

@github-actions github-actions Bot added the Mgmt This issue is related to a management-plane library. label May 19, 2026
@olivertowers
olivertowers marked this pull request as ready for review May 19, 2026 16:09
Copilot AI review requested due to automatic review settings May 19, 2026 16:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 (and KnownNetworkBypassMode) to MongoClusterProperties / MongoClusterUpdateProperties; expose more KnownVersions entries up through V20260201Preview.
  • Replace the client-side ClientApiVersionPolicy with per-call api-version fallback (context.apiVersion ?? "2026-02-01-preview"); add apiVersion plumbing in getLongRunningPoller / buildPagedAsyncIterator and a nextLinkMethod POST option; have restorePoller recover api-version from the initial URL.
  • Tooling-driven re-emission: type-only re-exports, removal of @fixme delete comments, URL template normalizeUnreserved, samples moved to v1-beta, samples references updated to 2026-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.

@github-actions github-actions Bot added mgmt-review-in-progress Management SDK review is in progress and removed mgmt-review-needed labels May 20, 2026
@kazrael2119

Copy link
Copy Markdown
Member

LGTM
cc @JialinHuang803

@kazrael2119

Copy link
Copy Markdown
Member

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.

@olivertowers
olivertowers merged commit 80a499f into main May 21, 2026
140 of 143 checks passed
@olivertowers
olivertowers deleted the sdkauto/@azure-arm-mongocluster-6321205 branch May 21, 2026 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Mgmt This issue is related to a management-plane library. mgmt-review-in-progress Management SDK review is in progress Self-Service Release PR for self-service release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants