[AutoPR sdk-resourcemanager/batch/armbatch]-generated-from-SDK Generation - Go-6712761 - #27404
Open
azure-sdk-automation[bot] wants to merge 1 commit into
Open
Conversation
…/Batch/tspconfig.yaml', SDK Release Type: stable, and CommitSHA: '3be251f9a92eb6ae68f4e3ee706f462541de316e' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6712761 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
azure-sdk-automation
Bot
requested review from
Jiaqi Zhang (JiaqiZhang-Dev),
Renhe Li (lirenhe) and
Chenjie Shi (tadelesh)
as code owners
August 18, 2026 03:55
|
Azure Pipelines: Successfully started running 1 pipeline(s). 6 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot could not run the full agentic suite for this review because it was automatically requested on a bot-authored pull request. Request a review from Copilot under Reviewers to retry with the full agentic suite. Improved support for bot-authored pull requests is coming soon.
Updates the Azure Batch ARM Go SDK package to a new major version (v5), aligning generated code, examples, and dependencies with the latest API/spec inputs.
Changes:
- Bump module major version from
/v4to/v5and update docs/examples accordingly. - Regenerate clients/pagers and response handling (including ETag field changes and pager request flow).
- Update spec commit reference and dependencies (e.g.,
azcore).
Reviewed changes
Copilot reviewed 15 out of 41 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| sdk/resourcemanager/batch/armbatch/version.go | Bumps internal module version to v5.0.0. |
| sdk/resourcemanager/batch/armbatch/tsp-location.yaml | Updates swagger/spec commit pointer used for generation. |
| sdk/resourcemanager/batch/armbatch/testdata/_metadata.json | Updates testdata metadata schema and emitter version. |
| sdk/resourcemanager/batch/armbatch/responses.go | Updates response structs/comments (including ETag-related fields). |
| sdk/resourcemanager/batch/armbatch/privatelinkresource_client_example_test.go | Updates import path to /v5 and example output shapes. |
| sdk/resourcemanager/batch/armbatch/privatelinkresource_client.go | Updates request/query encoding and pager nextLink handling. |
| sdk/resourcemanager/batch/armbatch/privateendpointconnection_client_example_test.go | Updates import path to /v5, fixes log message, updates example output shapes. |
| sdk/resourcemanager/batch/armbatch/privateendpointconnection_client.go | Updates request/query encoding and pager nextLink handling. |
| sdk/resourcemanager/batch/armbatch/pool_client_example_test.go | Updates import path to /v5 and example output shapes (ETag/time formatting updates). |
| sdk/resourcemanager/batch/armbatch/pool_client.go | Updates request/query encoding, ETag extraction, and pager nextLink handling. |
| sdk/resourcemanager/batch/armbatch/operations_client_example_test.go | Updates import path to /v5. |
| sdk/resourcemanager/batch/armbatch/go.sum | Updates dependency checksums (notably azcore). |
| sdk/resourcemanager/batch/armbatch/go.mod | Updates module path to /v5 and bumps azcore dependency. |
| sdk/resourcemanager/batch/armbatch/batchmanagement_live_test.go | Updates import path to /v5. |
| sdk/resourcemanager/batch/armbatch/README.md | Updates go get installation path to /v5. |
| sdk/resourcemanager/batch/armbatch/CHANGELOG.md | Adds v5.0.0 release notes, including ETag-related breaking changes. |
Files not reviewed (25)
- sdk/resourcemanager/batch/armbatch/account_client.go: Generated file
- sdk/resourcemanager/batch/armbatch/account_client_example_test.go: Generated file
- sdk/resourcemanager/batch/armbatch/application_client.go: Generated file
- sdk/resourcemanager/batch/armbatch/application_client_example_test.go: Generated file
- sdk/resourcemanager/batch/armbatch/applicationpackage_client.go: Generated file
- sdk/resourcemanager/batch/armbatch/applicationpackage_client_example_test.go: Generated file
- sdk/resourcemanager/batch/armbatch/constants.go: Generated file
- sdk/resourcemanager/batch/armbatch/fake/account_server.go: Generated file
- sdk/resourcemanager/batch/armbatch/fake/application_server.go: Generated file
- sdk/resourcemanager/batch/armbatch/fake/applicationpackage_server.go: Generated file
- sdk/resourcemanager/batch/armbatch/fake/internal.go: Generated file
- sdk/resourcemanager/batch/armbatch/fake/location_server.go: Generated file
- sdk/resourcemanager/batch/armbatch/fake/networksecurityperimeter_server.go: Generated file
- sdk/resourcemanager/batch/armbatch/fake/operations_server.go: Generated file
- sdk/resourcemanager/batch/armbatch/fake/pool_server.go: Generated file
- sdk/resourcemanager/batch/armbatch/fake/privateendpointconnection_server.go: Generated file
- sdk/resourcemanager/batch/armbatch/fake/privatelinkresource_server.go: Generated file
- sdk/resourcemanager/batch/armbatch/fake/server_factory.go: Generated file
- sdk/resourcemanager/batch/armbatch/location_client.go: Generated file
- sdk/resourcemanager/batch/armbatch/location_client_example_test.go: Generated file
- sdk/resourcemanager/batch/armbatch/models.go: Generated file
- sdk/resourcemanager/batch/armbatch/models_serde.go: Generated file
- sdk/resourcemanager/batch/armbatch/networksecurityperimeter_client.go: Generated file
- sdk/resourcemanager/batch/armbatch/networksecurityperimeter_client_example_test.go: Generated file
- sdk/resourcemanager/batch/armbatch/operations_client.go: Generated file
Suppressed comments (7)
sdk/resourcemanager/batch/armbatch/responses.go:1
- The exported field name
Etagdoesn’t follow Go initialism conventions (expectedETag). Since this is a new major version, it’s a good opportunity to keep the idiomaticETagspelling for public API consistency and readability; otherwise, please ensure all related doc comments also avoid referring to the field asETagto prevent confusion.
sdk/resourcemanager/batch/armbatch/responses.go:1 - The exported field name
Etagdoesn’t follow Go initialism conventions (expectedETag). Since this is a new major version, it’s a good opportunity to keep the idiomaticETagspelling for public API consistency and readability; otherwise, please ensure all related doc comments also avoid referring to the field asETagto prevent confusion.
sdk/resourcemanager/batch/armbatch/responses.go:1 - The exported field name
Etagdoesn’t follow Go initialism conventions (expectedETag). Since this is a new major version, it’s a good opportunity to keep the idiomaticETagspelling for public API consistency and readability; otherwise, please ensure all related doc comments also avoid referring to the field asETagto prevent confusion.
sdk/resourcemanager/batch/armbatch/responses.go:1 - The exported field name
Etagdoesn’t follow Go initialism conventions (expectedETag). Since this is a new major version, it’s a good opportunity to keep the idiomaticETagspelling for public API consistency and readability; otherwise, please ensure all related doc comments also avoid referring to the field asETagto prevent confusion.
sdk/resourcemanager/batch/armbatch/responses.go:1 - The exported field name
Etagdoesn’t follow Go initialism conventions (expectedETag). Since this is a new major version, it’s a good opportunity to keep the idiomaticETagspelling for public API consistency and readability; otherwise, please ensure all related doc comments also avoid referring to the field asETagto prevent confusion.
sdk/resourcemanager/batch/armbatch/pool_client.go:1 - For subsequent pages (
nextLink != \"\"), the request no longer setsAccept: application/json. Previouslyruntime.FetcherForNextLinkhandled this; now the nextLink flow may send a request without the expected Accept header, which can affect content negotiation. Set the Accept header for both first-page and nextLink requests (and apply the same fix to the analogous pager implementations inprivateendpointconnection_client.goandprivatelinkresource_client.go).
sdk/resourcemanager/batch/armbatch/pool_client.go:1 - Although Go canonicalizes header keys, using the conventional spelling
ETagwhen reading the header improves clarity (it matches the HTTP header name and the surrounding comments). Consider switchingresp.Header.Get(\"Etag\")back toresp.Header.Get(\"ETag\")for readability.
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Configurations: 'specification/batch/resource-manager/Microsoft.Batch/Batch/tspconfig.yaml', SDK Release Type: stable, and CommitSHA: '3be251f9a92eb6ae68f4e3ee706f462541de316e' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6712761 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=35236 Submitted by: xingwu@microsoft.com