Skip to content

Fabric Mirror Settings API changes#40348

Merged
judyzhu10 merged 1 commit into
Azure:mysql/2025-12-01from
tugupt:fabric_changes
Apr 21, 2026
Merged

Fabric Mirror Settings API changes#40348
judyzhu10 merged 1 commit into
Azure:mysql/2025-12-01from
tugupt:fabric_changes

Conversation

@tugupt
Copy link
Copy Markdown
Contributor

@tugupt tugupt commented Feb 11, 2026

Choose a PR Template

Switch to "Preview" on this description then select one of the choices below.

Click here to open a PR for a Data Plane API.

Click here to open a PR for a Control Plane (ARM) API.

Click here to open a PR for only SDK configuration.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 11, 2026

Next Steps to Merge

Important checks have failed. As of today they are not blocking this PR, but in near future they may.
Addressing the following failures is highly recommended:
  • ⚠️ The check named Swagger BreakingChange has failed. To unblock this PR, follow the process at aka.ms/brch.


Comment generated by summarize-checks workflow run.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 11, 2026

API Change Check

APIView identified API level changes in this PR and created the following API reviews

Language API Review for Package
Go sdk/resourcemanager/mysql/armmysqlflexibleservers
JavaScript @azure/arm-mysql-flexible
Java com.azure.resourcemanager:azure-resourcemanager-mysqlflexibleserver
Python azure-mgmt-mysqlflexibleservers

Comment generated by After APIView workflow run.

@judyzhu10 judyzhu10 self-requested a review February 26, 2026 09:36
}
}
},
"201": {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

it is a long running operation, can you also provide 202 response

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hi @judyzhu10 , I have added the 202 response. Can you please check, verify and if seems correct then resolve the comment. Thanks

@judyzhu10
Copy link
Copy Markdown
Member

Finally, please check whether the Swagger generated in openapi.json meets your expectations.

using Azure.ResourceManager;
using TypeSpec.OpenAPI;

@versioned(Versions)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No version is needed here.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Removed @versioned(Versions) from this file. It is already declared in main.tsp (line 43).

}

#suppress "@azure-tools/typespec-azure-resource-manager/no-resource-delete-operation" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@armResourceOperations
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just add @added() above the interface; there’s no need to add a version annotation to each get/create/list operation.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Done — moved @added(Versions.v2025_12_01_preview) to the interface level and removed it from all three individual operations (get, createOrUpdate, listByServer).


@doc("List Fabric Mirroring settings by server.")
@added(Versions.v2025_12_01_preview)
@operationId("FabricMirroringSettings_ListByServer")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Default template list is a pageable API. Can you check whether your API supports pagination?
Image

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Aakarshit confirmed that we are not supporting pagination. There would always be a single record.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hi @judyzhu10, checked with the team — our API does not support pagination. There will always be a single record ("Default") per server.

Updated the list operation from ArmResourceListByParent to Azure.ResourceManager.Legacy.ArmListSinglePageByParent, which removes x-ms-pageable from the generated OpenAPI while keeping the same response shape. Please review.

@judyzhu10 judyzhu10 force-pushed the mysql/2025-12-01 branch 2 times, most recently from 955db16 to 49848ea Compare April 21, 2026 08:50
Adds a new FabricMirroringSettings singleton proxy resource under
MySQL FlexibleServers with GET, PUT (LRO), and List operations.
Includes TypeSpec source, examples, and addresses all review comments.
@judyzhu10 judyzhu10 merged commit a6ee858 into Azure:mysql/2025-12-01 Apr 21, 2026
16 of 24 checks passed
judyzhu10 pushed a commit that referenced this pull request May 22, 2026
Adds a new FabricMirroringSettings singleton proxy resource under
MySQL FlexibleServers with GET, PUT (LRO), and List operations.
Includes TypeSpec source, examples, and addresses all review comments.

Co-authored-by: Mohit Sinha <mohitsinha@microsoft.com>
judyzhu10 pushed a commit that referenced this pull request May 22, 2026
Adds a new FabricMirroringSettings singleton proxy resource under
MySQL FlexibleServers with GET, PUT (LRO), and List operations.
Includes TypeSpec source, examples, and addresses all review comments.

Co-authored-by: Mohit Sinha <mohitsinha@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants