-
Notifications
You must be signed in to change notification settings - Fork 867
[Merge 2nd] Generate AbortMultipartUpload, CreateBucketMetadataTableConfiguration and DeleteBucket related operations. #3870
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
91e29e3
Generate Listbuckets and ListDirectoryBuckets
peterrsongg 95e3ce8
Generate more s3 operations, add new customizemarshaller partial meth…
peterrsongg 2e2618c
change customizemarshaller to postmarshallcustomization
peterrsongg c289d85
Add back dependencies accidentally removed in previous commit for gen…
peterrsongg 9b0cd4a
update devconfig
peterrsongg cf7b4c0
rerun structuregenerator.tt file to generate cs file
peterrsongg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
generator/.DevConfigs/7064092c-4180-4624-a402-c6d354a1dfeb.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"core": { | ||
"changeLogMessages": [ | ||
"Generate PostMarshallCustomization partial method and make marshallers partial classes for rest-xml protocol services" | ||
], | ||
"type": "patch", | ||
"updateMinimum": true | ||
}, | ||
"services": [ | ||
{ | ||
"serviceName": "S3", | ||
"type": "patch", | ||
"changeLogMessages": [ | ||
"Generate DeleteBucket, DeleteBucketEncryption and related DeleteBucket operations. Generated AbortMultipartUpload and CreateBucketMetadataTableConfiguration. Delete relevant custom files." | ||
] | ||
} | ||
] | ||
} |
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
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
1,268 changes: 652 additions & 616 deletions
1,268
generator/ServiceClientGeneratorLib/Generators/Marshallers/RestXmlRequestMarshaller.cs
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -736,12 +736,12 @@ | |||||||||||||||||||
</None> | ||||||||||||||||||||
</ItemGroup> | ||||||||||||||||||||
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'"> | ||||||||||||||||||||
<PackageReference Include="Microsoft.CSharp" Version="4.4.1" /> | ||||||||||||||||||||
<PackageReference Include="Microsoft.CSharp" Version="4.4.1" /> | ||||||||||||||||||||
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. this was already here aws-sdk-net/generator/ServiceClientGeneratorLib/ServiceClientGeneratorLib.csproj Lines 738 to 746 in d828fcc
|
||||||||||||||||||||
</ItemGroup> | ||||||||||||||||||||
<ItemGroup Condition="'$(TargetFramework)' == 'net45'"> | ||||||||||||||||||||
<Reference Include="Microsoft.CSharp" /> | ||||||||||||||||||||
<Reference Include="Microsoft.CSharp" /> | ||||||||||||||||||||
</ItemGroup> | ||||||||||||||||||||
<ItemGroup Condition="'$(TargetFramework)' != 'net45'"> | ||||||||||||||||||||
<PackageReference Include="System.CodeDom" Version="6.0.0" /> | ||||||||||||||||||||
<PackageReference Include="System.CodeDom" Version="6.0.0" /> | ||||||||||||||||||||
</ItemGroup> | ||||||||||||||||||||
</Project> |
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
Oops, something went wrong.
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.
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
99% of services won't implement this
, why not add it only for the marshallers that need it instead of affecting all the xml marshallers?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.
Norm and I talked and he wanted this mechanism in here instead of another customization entry which would tell us to generate this for a specific subset.
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.
Since the other 99% won't implement the partial
PostMarshallCustomization
the compiler will just compile it away as if it doesn't exists. There is no runtime cost to the other marshallers and I want to avoid as much as possible in the end of this project the number of S3 specific checks we need to do in the generator.Plus it might be a useful customization point in the future for other services.