Skip to content

[[Containerregistry-typespec]]containerregistry/armcontainerregistry #25495

Closed
jliusan wants to merge 2 commits intomainfrom
release-containerregistry-armcontainerregistry-2.0.0-1761201127
Closed

[[Containerregistry-typespec]]containerregistry/armcontainerregistry #25495
jliusan wants to merge 2 commits intomainfrom
release-containerregistry-armcontainerregistry-2.0.0-1761201127

Conversation

@jliusan
Copy link
Copy Markdown
Member

@jliusan jliusan commented Oct 23, 2025

generate base Azure/azure-rest-api-specs#37169 typespec

…1.3.0-beta.4 generation from spec commit: 3855ffb4be0cd4d227b130b67d874fa816736c04
…2.0.0 generation from spec commit: 3855ffb4be0cd4d227b130b67d874fa816736c04
Copilot AI review requested due to automatic review settings October 23, 2025 06:51
@github-actions github-actions bot added the Mgmt This issue is related to a management-plane library. label Oct 23, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the Azure Container Registry Go SDK to use a new code generator (Microsoft Go Code Generator) and upgrades the API version from 2025-03-01-preview to 2025-11-01. The changes primarily involve:

  • Switching from AutoRest to Go Code Generator for code generation
  • Updating API version references throughout the codebase
  • Refactoring client initialization with improved documentation
  • Removing deprecated operations and test files
  • Modifying HTTP request headers and polling behavior

Reviewed Changes

Copilot reviewed 74 out of 82 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tokens_client.go Updated code generator attribution, API version (2025-11-01), removed FinalStateVia polling, added Content-Type headers
time_rfc3339.go Updated code generator attribution only
testdata/_metadata.json New file with API version metadata
tasks_client_example_test.go Deleted entire example test file (1895 lines)
tasks_client.go Deleted entire client implementation file (448 lines)
taskruns_client_example_test.go Deleted entire example test file (404 lines)
taskruns_client.go Deleted entire client implementation file (472 lines)
scopemaps_client_example_test.go Updated examples with new generator, improved formatting, added import path v2
scopemaps_client.go Updated API version, removed FinalStateVia, added Content-Type headers, improved documentation
runs_client_example_test.go Deleted entire example test file (275 lines)
runs_client.go Deleted entire client implementation file (382 lines)
responses.go Removed response types for deleted clients (Tasks, TaskRuns, Runs, AgentPools, etc.)
replications_client_example_test.go Updated examples with new generator, improved formatting, added import path v2
replications_client.go Updated API version, removed FinalStateVia, added Content-Type headers
registries_client.go Updated API version, removed FinalStateVia, removed GetBuildSourceUploadURL and ScheduleRun methods, changed ListUsages to pager, renamed PrivateLinkResource type
privateendpointconnections_client_example_test.go Updated examples with new generator, improved formatting, added import path v2
privateendpointconnections_client.go Updated API version, removed FinalStateVia, added Content-Type headers
polymorphic_helpers.go Deleted entire file with polymorphic unmarshalling helpers (85 lines)
operations_live_test.go Updated import path to v2
operations_client.go Updated API version, improved documentation
containerregistry_live_test.go Updated import path to v2

func (client *RegistriesClient) getPrivateLinkResourceHandleResponse(resp *http.Response) (RegistriesClientGetPrivateLinkResourceResponse, error) {
result := RegistriesClientGetPrivateLinkResourceResponse{}
if err := runtime.UnmarshalAsJSON(resp, &result.PrivateLinkResource); err != nil {
if err := runtime.UnmarshalAsJSON(resp, &result.MyPrivateLinkResource); err != nil {
Copy link

Copilot AI Oct 23, 2025

Choose a reason for hiding this comment

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

The field name 'MyPrivateLinkResource' uses unconventional prefix 'My'. Should be renamed to 'PrivateLinkResource' to follow Go naming conventions and match the documentation comment that refers to 'A private link resource'.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Copy Markdown

API Change Check

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

sdk/resourcemanager/containerregistry/armcontainerregistry

@tadelesh tadelesh closed this Nov 3, 2025
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants