-
Notifications
You must be signed in to change notification settings - Fork 874
generate RestoreObject #4208
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
Open
peterrsongg
wants to merge
1
commit into
peterrsongg/petesong/phase-3-pr5-rebased-2/4
Choose a base branch
from
peterrsongg/petesong/phase-3-pr5-rebased-2/5
base: peterrsongg/petesong/phase-3-pr5-rebased-2/4
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
generate RestoreObject #4208
Changes from all commits
Commits
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
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 |
|---|---|---|
|
|
@@ -18,7 +18,7 @@ namespace ServiceClientGenerator.Generators.SourceFiles | |
| /// Class to produce the template output | ||
|
Member
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. I guess you made some changes then reverted them, maybe remove this file from the PR to avoid confusion. |
||
| /// </summary> | ||
|
|
||
| #line 1 "C:\codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| #line 1 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] | ||
| public partial class ServiceEnumerations : BaseGenerator | ||
| { | ||
|
|
@@ -29,7 +29,7 @@ public partial class ServiceEnumerations : BaseGenerator | |
| public override string TransformText() | ||
| { | ||
|
|
||
| #line 6 "C:\codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| #line 6 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
|
|
||
| AddLicenseHeader(); | ||
|
|
||
|
|
@@ -38,14 +38,14 @@ public override string TransformText() | |
| #line hidden | ||
| this.Write("\r\nusing System;\r\n\r\nusing Amazon.Runtime;\r\n\r\nnamespace "); | ||
|
|
||
| #line 14 "C:\codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| #line 14 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.Namespace)); | ||
|
|
||
| #line default | ||
| #line hidden | ||
| this.Write("\r\n{\r\n"); | ||
|
|
||
| #line 16 "C:\codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| #line 16 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
|
|
||
| foreach(var enumeration in this.Config.ServiceModel.Enumerations(false)) | ||
| { | ||
|
|
@@ -55,21 +55,21 @@ public override string TransformText() | |
| #line hidden | ||
| this.Write("\r\n /// <summary>\r\n /// Constants used for properties of type "); | ||
|
|
||
| #line 22 "C:\codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| #line 22 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| this.Write(this.ToStringHelper.ToStringWithCulture(enumeration.Name)); | ||
|
|
||
| #line default | ||
| #line hidden | ||
| this.Write(".\r\n /// </summary>\r\n public class "); | ||
|
|
||
| #line 24 "C:\codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| #line 24 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| this.Write(this.ToStringHelper.ToStringWithCulture(enumeration.Name)); | ||
|
|
||
| #line default | ||
| #line hidden | ||
| this.Write(" : ConstantClass\r\n {\r\n\r\n"); | ||
|
|
||
| #line 27 "C:\codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| #line 27 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
|
|
||
| foreach(var enumValue in enumeration.EnumerationValues) | ||
| { | ||
|
|
@@ -80,56 +80,56 @@ public override string TransformText() | |
| #line hidden | ||
| this.Write(" /// <summary>\r\n /// Constant "); | ||
|
|
||
| #line 33 "C:\codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| #line 33 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| this.Write(this.ToStringHelper.ToStringWithCulture(enumValue.PropertyName)); | ||
|
|
||
| #line default | ||
| #line hidden | ||
| this.Write(" for "); | ||
|
|
||
| #line 33 "C:\codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| #line 33 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| this.Write(this.ToStringHelper.ToStringWithCulture(enumeration.Name)); | ||
|
|
||
| #line default | ||
| #line hidden | ||
| this.Write("\r\n /// </summary>\r\n public "); | ||
|
|
||
| #line 35 "C:\codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| #line 35 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| this.Write(this.ToStringHelper.ToStringWithCulture(enumValue.PropertyName.Equals("Equals") ? "new " : "")); | ||
|
|
||
| #line default | ||
| #line hidden | ||
| this.Write("static readonly "); | ||
|
|
||
| #line 35 "C:\codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| #line 35 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| this.Write(this.ToStringHelper.ToStringWithCulture(enumeration.Name)); | ||
|
|
||
| #line default | ||
| #line hidden | ||
| this.Write(" "); | ||
|
|
||
| #line 35 "C:\codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| #line 35 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| this.Write(this.ToStringHelper.ToStringWithCulture(enumValue.PropertyName)); | ||
|
|
||
| #line default | ||
| #line hidden | ||
| this.Write(" = new "); | ||
|
|
||
| #line 35 "C:\codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| #line 35 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| this.Write(this.ToStringHelper.ToStringWithCulture(enumeration.Name)); | ||
|
|
||
| #line default | ||
| #line hidden | ||
| this.Write("(\""); | ||
|
|
||
| #line 35 "C:\codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| #line 35 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| this.Write(this.ToStringHelper.ToStringWithCulture(enumValue.MarshallName)); | ||
|
|
||
| #line default | ||
| #line hidden | ||
| this.Write("\");\r\n"); | ||
|
|
||
| #line 36 "C:\codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| #line 36 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
|
|
||
| } | ||
|
|
||
|
|
@@ -147,7 +147,7 @@ public override string TransformText() | |
| /// </summary> | ||
| public "); | ||
|
|
||
| #line 48 "C:\codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| #line 48 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| this.Write(this.ToStringHelper.ToStringWithCulture(enumeration.Name)); | ||
|
|
||
| #line default | ||
|
|
@@ -164,14 +164,14 @@ public override string TransformText() | |
| /// <returns>The constant for the unique value</returns> | ||
| public static "); | ||
|
|
||
| #line 58 "C:\codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| #line 58 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| this.Write(this.ToStringHelper.ToStringWithCulture(enumeration.Name)); | ||
|
|
||
| #line default | ||
| #line hidden | ||
| this.Write(" FindValue(string value)\r\n {\r\n return FindValue<"); | ||
|
|
||
| #line 60 "C:\codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| #line 60 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| this.Write(this.ToStringHelper.ToStringWithCulture(enumeration.Name)); | ||
|
|
||
| #line default | ||
|
|
@@ -186,15 +186,15 @@ public override string TransformText() | |
| /// <returns></returns> | ||
| public static implicit operator "); | ||
|
|
||
| #line 68 "C:\codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| #line 68 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| this.Write(this.ToStringHelper.ToStringWithCulture(enumeration.Name)); | ||
|
|
||
| #line default | ||
| #line hidden | ||
| this.Write("(string value)\r\n {\r\n return FindValue(value);\r\n }\r\n }" + | ||
| "\r\n\r\n"); | ||
|
|
||
| #line 74 "C:\codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
| #line 74 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceEnumerations.tt" | ||
|
|
||
| } | ||
|
|
||
|
|
||
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.
GlacierParametersis a structure with only 1 memberTier. In our custom implementation we just moved theTiermember up two levels to theRestoreObjectRequestand also changed the type to be an enum. This means that if something is ever added toGlacierParameterswe will miss it. This ensures that if any member is added toGlacierParameterswe don't miss it and do the manual work necessary.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 don't think we should keep this
TODOhere, either add what needs to be done as a comment or add the runbook entry to avoid forgetting it.