-
Notifications
You must be signed in to change notification settings - Fork 870
Update mapping.json for response/request mapping to latest version #4086
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feature/transfermanager
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 response mapping logic between S3 SDK response objects (PutObjectResponse, CompleteMultipartUploadResponse) and the Transfer Utility's TransferUtilityUploadResponse class. The changes expand the mapped properties to include additional fields like BucketName, Key, Location, and Size, along with configuration file updates and test improvements.
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| sdk/src/Services/S3/Custom/Transfer/TransferUtilityUploadResponse.cs | Added new properties: BucketName, Key, Location, and Size with documentation |
| sdk/src/Services/S3/Custom/Transfer/Internal/ResponseMapper.cs | Updated mapping methods to include new properties for both PutObject and CompleteMultipartUpload responses |
| sdk/test/Services/S3/UnitTests/Custom/EmbeddedResource/mapping.json | Added property mappings for new fields in both request and response conversions |
| sdk/test/Services/S3/UnitTests/Custom/EmbeddedResource/property-aliases.json | Added BucketName alias mappings for response types |
| sdk/test/Services/S3/UnitTests/Custom/ResponseMapperTests.cs | Fixed test value generation for int/long types and corrected usesHeadersCollection flag |
| generator/.DevConfigs/7f23582e-3225-487b-83e7-167cf17cb238.json | Added dev config for patch version update |
| return simpleUploadCommand.ConstructRequest(); | ||
| }, | ||
| usesHeadersCollection: false, | ||
| usesHeadersCollection: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since CacheControl was added to mapping and thats located in headers we have to search there now
Update mapping.json for response/request mapping to latest version
Description
Update mapping.json for response/request mapping to latest version. Also update corresponding classes to compensate for those changes.
Motivation and Context
To comply with the SEP
Testing
Types of changes
Checklist
License