-
Notifications
You must be signed in to change notification settings - Fork 870
Generate copy part #3951
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
Generate copy part #3951
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"services": [ | ||
{ | ||
"serviceName": "S3", | ||
"type": "patch", | ||
"changeLogMessages": [ | ||
"Generate CopyPart.", | ||
"[Breaking Change] Amazon.S3.Model.CopyPartResponse's BucketKeyEnabled will now return bool? instead of bool, in line with other S3 nullable types." | ||
] | ||
} | ||
] | ||
} |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -388,41 +388,82 @@ | |||||||||||||||||||||||
"UploadPartCopyRequest": { | ||||||||||||||||||||||||
"modify": [ | ||||||||||||||||||||||||
{ | ||||||||||||||||||||||||
"Bucket": { "emitPropertyName": "DestinationBucket" } | ||||||||||||||||||||||||
"CopySourceIfModifiedSince":{"emitPropertyName":"ModifiedSinceDate"} | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
{ | ||||||||||||||||||||||||
"CopySourceIfUnmodifiedSince":{"emitPropertyName":"UnmodifiedSinceDate"} | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
{ | ||||||||||||||||||||||||
"SSECustomerAlgorithm" : {"emitPropertyName": "ServerSideEncryptionCustomerMethod"} | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
{ | ||||||||||||||||||||||||
"SSECustomerKey" : {"emitPropertyName" : "ServerSideEncryptionCustomerProvidedKey"} | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
{ | ||||||||||||||||||||||||
"SSECustomerKeyMD5" : {"emitPropertyName":"ServerSideEncryptionCustomerProvidedKeyMD5"} | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
{ | ||||||||||||||||||||||||
"CopySourceSSECustomerAlgorithm" : {"emitPropertyName" : "CopySourceServerSideEncryptionCustomerMethod"} | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
{ | ||||||||||||||||||||||||
"CopySourceSSECustomerKey" : {"emitPropertyName" : "CopySourceServerSideEncryptionCustomerProvidedKey"} | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
{ | ||||||||||||||||||||||||
"CopySourceSSECustomerKeyMD5" : {"emitPropertyName":"CopySourceServerSideEncryptionCustomerProvidedKeyMD5"} | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
{ | ||||||||||||||||||||||||
"CopySourceIfMatch" : {"emitPropertyName" : "ETagToMatch"} | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
{ | ||||||||||||||||||||||||
"CopySourceIfNoneMatch" : {"emitPropertyName" : "ETagsToNotMatch"} | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
{ | ||||||||||||||||||||||||
"Bucket" : {"emitPropertyName" : "DestinationBucket"} | ||||||||||||||||||||||||
peterrsongg marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||
} | ||||||||||||||||||||||||
], | ||||||||||||||||||||||||
"exclude": [ | ||||||||||||||||||||||||
"CopySource", | ||||||||||||||||||||||||
"Key" | ||||||||||||||||||||||||
"Key", | ||||||||||||||||||||||||
"CopySourceRange" | ||||||||||||||||||||||||
], | ||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The CopySourceRange property is excluded from generation but there's no corresponding inject or modify entry to handle the FirstByte/LastByte range logic. This could result in missing functionality for byte range copy operations.
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does this need any changes? not really 100% sure what its saying but please confirm @peterrsongg (see copilots other comment) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nope, the ai is partially right here. I left |
||||||||||||||||||||||||
"inject": [ | ||||||||||||||||||||||||
{ | ||||||||||||||||||||||||
"SourceBucket": { | ||||||||||||||||||||||||
"shape": "BucketName" | ||||||||||||||||||||||||
"shape": "BucketName", | ||||||||||||||||||||||||
"location":"header" | ||||||||||||||||||||||||
} | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
{ | ||||||||||||||||||||||||
"SourceKey": { | ||||||||||||||||||||||||
"shape": "ObjectKey", | ||||||||||||||||||||||||
"originalMember":"CopySource" | ||||||||||||||||||||||||
"originalMember":"CopySource", | ||||||||||||||||||||||||
"location":"header" | ||||||||||||||||||||||||
} | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
{ | ||||||||||||||||||||||||
"SourceVersionId": { | ||||||||||||||||||||||||
"shape": "CopySourceVersionId" | ||||||||||||||||||||||||
} | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
{ | ||||||||||||||||||||||||
"DestinationBucket": { | ||||||||||||||||||||||||
"shape": "BucketName" | ||||||||||||||||||||||||
"shape": "CopySourceVersionId", | ||||||||||||||||||||||||
"location":"header" | ||||||||||||||||||||||||
} | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
{ | ||||||||||||||||||||||||
"DestinationKey": { | ||||||||||||||||||||||||
"shape": "ObjectKey", | ||||||||||||||||||||||||
"originalMember": "Key" | ||||||||||||||||||||||||
"originalMember": "Key", | ||||||||||||||||||||||||
"location":"header" | ||||||||||||||||||||||||
} | ||||||||||||||||||||||||
} | ||||||||||||||||||||||||
], | ||||||||||||||||||||||||
"excludeFromMarshalling":[ | ||||||||||||||||||||||||
"ServerSideEncryptionCustomerProvidedKey", | ||||||||||||||||||||||||
"ServerSideEncryptionCustomerProvidedKeyMD5", | ||||||||||||||||||||||||
"CopySourceServerSideEncryptionCustomerProvidedKey", | ||||||||||||||||||||||||
"CopySourceServerSideEncryptionCustomerProvidedKeyMD5", | ||||||||||||||||||||||||
"SourceKey", | ||||||||||||||||||||||||
"SourceBucket", | ||||||||||||||||||||||||
"DestinationKey", | ||||||||||||||||||||||||
"DestinationBucket", | ||||||||||||||||||||||||
"SourceVersionId" | ||||||||||||||||||||||||
] | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
"S3Grantee":{ | ||||||||||||||||||||||||
|
@@ -636,6 +677,16 @@ | |||||||||||||||||||||||
"EncodingType" : {"emitPropertyName" : "Encoding"} | ||||||||||||||||||||||||
} | ||||||||||||||||||||||||
] | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
"UploadPartCopyOutput" :{ | ||||||||||||||||||||||||
"modify" : [ | ||||||||||||||||||||||||
{ | ||||||||||||||||||||||||
"SSEKMSKeyId" : {"emitPropertyName" : "ServerSideEncryptionKeyManagementServiceKeyId"} | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
{ | ||||||||||||||||||||||||
"ServerSideEncryption" : {"emitPropertyName" : "ServerSideEncryptionMethod"} | ||||||||||||||||||||||||
} | ||||||||||||||||||||||||
] | ||||||||||||||||||||||||
} | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
"operationModifiers": { | ||||||||||||||||||||||||
|
@@ -896,6 +947,28 @@ | |||||||||||||||||||||||
"Marshaller": "StringUtils.FromString", | ||||||||||||||||||||||||
"Unmarshaller" : "CommonPrefixesItemUnmarshaller" | ||||||||||||||||||||||||
} | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
"UploadPartCopyRequest":{ | ||||||||||||||||||||||||
"ServerSideEncryptionCustomerMethod" : { | ||||||||||||||||||||||||
"Type": "ServerSideEncryptionCustomerMethod", | ||||||||||||||||||||||||
"Marshaller": "StringUtils.FromString", | ||||||||||||||||||||||||
"Unmarshaller": "StringUnmarshaller" | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
"CopySourceServerSideEncryptionCustomerMethod":{ | ||||||||||||||||||||||||
"Type": "ServerSideEncryptionCustomerMethod", | ||||||||||||||||||||||||
"Marshaller": "StringUtils.FromString", | ||||||||||||||||||||||||
"Unmarshaller": "StringUnmarshaller" | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
"ETagToMatch":{ | ||||||||||||||||||||||||
"Type" : "List<string>", | ||||||||||||||||||||||||
"Marshaller": "Amazon.Util.AWSSDKUtils.Join", | ||||||||||||||||||||||||
"Unmarshaller": "StringUnmarshaller" | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
"ETagsToNotMatch" : { | ||||||||||||||||||||||||
"Type" : "List<string>", | ||||||||||||||||||||||||
"Marshaller" : "Amazon.Util.AWSSDKUtils.Join", | ||||||||||||||||||||||||
"Unmarshaller" : "StringUnmarshaller" | ||||||||||||||||||||||||
} | ||||||||||||||||||||||||
} | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
"excludeMembers":{ | ||||||||||||||||||||||||
|
@@ -971,10 +1044,14 @@ | |||||||||||||||||||||||
"flattenShapes" : { | ||||||||||||||||||||||||
"PutBucketNotificationConfigurationRequest" : [ | ||||||||||||||||||||||||
"NotificationConfiguration" | ||||||||||||||||||||||||
], | ||||||||||||||||||||||||
"UploadPartCopyOutput" : [ | ||||||||||||||||||||||||
"CopyPartResult" | ||||||||||||||||||||||||
] | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
"excludeShapes":[ | ||||||||||||||||||||||||
"NotificationConfiguration" | ||||||||||||||||||||||||
"NotificationConfiguration", | ||||||||||||||||||||||||
"CopyPartResult" | ||||||||||||||||||||||||
], | ||||||||||||||||||||||||
"implementsVisitorPattern":{ | ||||||||||||||||||||||||
"LifecycleFilter":{ | ||||||||||||||||||||||||
|
Uh oh!
There was an error while loading. Please reload this page.
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.
I added this when I was working on splitting GetACL PutACL into their respective GetObjectACL and GetBucketACL a while back because I thought if we were excluding a member we would always be injecting another member and referencing the original member that the injected member is referencing. However, as I started to generate more S3 operations I realize that this is not always the case. Sometimes we exclude a member and inject a member but that member doesn't reference an "originalMember" at all.