Review request for Microsoft.ContainerService/aks to add version stable/2024-07-01#30291
Conversation
…able/2024-05-01 to version 2024-07-01
Co-authored-by: Lily Pan <lilypan@microsoft.com>
* added list mahcines and get machine to swagger * added definitions * adding example files * manchine name param * changing api version * modified example jsons * addressing comments * changed example params to match regex pattern * moving summary & tags to top
Next Steps to Merge✅ All automated merging requirements have been met! To get your PR merged, see aka.ms/azsdk/specreview/merge. |
Generated ApiView
|
|
For failed CI Swagger Avocado, all detected API paths are deprecated and not included in the previous stable API version 2024-05-01, see comment. |
ARM recommends enum instead of boolean for many reasons. Consider something like this: trustedPlatformModule: { None, Virtual } ... or something similar/better you come up with. Refers to: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-07-01/managedClusters.json:6248 in 70de27d. [](commit_id = 70de27d, deletion_comment = False) |
Use "Azure" instead of "Arm" in client-visible names and messages. Refers to: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-07-01/managedClusters.json:7656 in 70de27d. [](commit_id = 70de27d, deletion_comment = False) |
Looks like this is always a VM resource ID, so maybe vmResourceId or virtualMachineResourceId> Refers to: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-07-01/managedClusters.json:7655 in 70de27d. [](commit_id = 70de27d, deletion_comment = False) |
You can also specify resource types using x-ms-arm-id-details extension. Ref: https://github.com/Azure/autorest/blob/main/docs/extensions/readme.md#x-ms-arm-id-details. Refers to: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-07-01/managedClusters.json:7657 in 70de27d. [](commit_id = 70de27d, deletion_comment = False) |
A similar comment was left when added to the preview API: #27431 (comment). We decided it makes most sense to keep the fields as booleans. |
@lilypan26 - OK. Could you explain the reasoning? I find many, many arguments in favor of enums over booleans, and not a single argument in favor of booleans over enums. I'll give some here:
Those are some of the reasons we give this feedback. I won't block ARM signoff on this, but I hope you will incorporate some of this thinking into future API designs. |
@mentat9 - we generally agree, if you look at the comment @lilypan26 linked the reasoning was:
Maybe we should be more willing to diverge from the underlying compute API here (or maybe they should be more willing to make fields such as these enums), but there's a tension between us forging our own path and looking different, versus us doing what the underlying compute API does and looking the same, and in this case we erred on the side of consistency with the compute API because the intent was to exactly proxy those features. Setting these flags on your AgentPool (which is backed by a single VMSS) maps exactly to setting those same fields on the VMSS. |
* impl * fix
so arm-id + x-ms-arm-id-details already says what the format of this ID is without needing to change the property name, plus it's already on an object called Machine, so it should be clear already that it is the resourceId of the machine. So, I wouldn't want to change the field name here. |
* addressing comments * run prettier check
addressed this one. |
addressed this one. |
|
@msyyc, could you please help approve the breaking change of Python SDK? |
…le/2024-07-01 (#30291) * Adds base for updating Microsoft.ContainerService/aks from version stable/2024-05-01 to version 2024-07-01 * Updates API version in new specs and examples * Add TL fields to July 2024-07-01 stable api (#30084) Co-authored-by: Lily Pan <lilypan@microsoft.com> * added list mahcines and get machine to swagger (#30137) * added list mahcines and get machine to swagger * added definitions * adding example files * manchine name param * changing api version * modified example jsons * addressing comments * changed example params to match regex pattern * moving summary & tags to top * Updates readme * GA Delete Machines API (#30318) * impl * fix * addressing comments (#30366) * addressing comments * run prettier check * Update sdk-suppressions.yaml --------- Co-authored-by: lilypan26 <lilylpan0426@gmail.com> Co-authored-by: Lily Pan <lilypan@microsoft.com> Co-authored-by: skuchipudi295 <128435195+skuchipudi295@users.noreply.github.com> Co-authored-by: Xu Xue <55420084+xuexu6666@users.noreply.github.com> Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>

ARM (Control Plane) API Specification Update Pull Request
Tip
Overwhelmed by all this guidance? See the
Getting helpsection at the bottom of this PR description.PR review workflow diagram
Please understand this diagram before proceeding. It explains how to get your PR approved & merged.
Purpose of this PR
What's the purpose of this PR? Check the specific option that applies. This is mandatory!
Due diligence checklist
To merge this PR, you must go through the following checklist and confirm you understood
and followed the instructions by checking all the boxes:
ARM resource provider contract and
REST guidelines (estimated time: 4 hours).
I understand this is required before I can proceed to the diagram Step 2, "ARM API changes review", for this PR.
Additional information
Viewing API changes
For convenient view of the API changes made by this PR, refer to the URLs provided in the table
in the
Generated ApiViewcomment added to this PR. You can use ApiView to show API versions diff.Suppressing failures
If one or multiple validation error/warning suppression(s) is detected in your PR, please follow the
suppressions guide to get approval.
Getting help
Purpose of this PRandDue diligence checklist.write accessper aka.ms/azsdk/access#request-access-to-rest-api-or-sdk-repositoriesNext Steps to Mergecomment. It will appear within few minutes of submitting this PR and will continue to be up-to-date with current PR state.and https://aka.ms/ci-fix.
queuedstate, please add a comment with contents/azp run.This should result in a new comment denoting a
PR validation pipelinehas started and the checks should be updated after few minutes.