Skip to content
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

Remove the need for operation type aliasing in codegen #1710

Merged
merged 6 commits into from
Sep 7, 2022

Conversation

Velfi
Copy link
Contributor

@Velfi Velfi commented Sep 6, 2022

Motivation and Context

#976

Description

This update reorganizes codegen in a small way so that we don't need to generate confusing operation and retry policy type aliases that we hide in the docs. Because they were already #[doc(hidden)], I chose not to mention this change in the SDK changelog.

other changes:

  • rename: FluentClientGenerics.sendBounds params to be more accurate
  • update: FlexibleClientGenerics.sendBounds impl for readability
  • update: type of FluentClientGenerator input param retryPolicyType to be Any with a default of RustType.Unit
  • update: PaginatorGenerator to take retryPolicy as an input
  • chore: fix some spelling and grammar issues
  • remove: redundant nextTokenEmpty function from PaginatorGenerator
  • add: writable property to RustType and RuntimeType that returns them in Writable form

Testing

ran existing tests

Checklist

  • I have updated CHANGELOG.next.toml if I made changes to the smithy-rs codegen or runtime crates

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

rename: FluentClientGenerics.sendBounds params to be more accurate
update: FlexibleClientGenerics.sendBounds impl for readability
update: type of FluentClientGenerator input param `retryPolicyType` to be `Any` with a default of `RustType.Unit`
update: PaginatorGenerator to take retryPolicy as an input
chore: fix some spelling and grammar issues
remove: redundant `nextTokenEmpty` function from PaginatorGenerator
@github-actions
Copy link

github-actions bot commented Sep 6, 2022

A new generated diff is ready to view.

A new doc preview is ready to view.

Co-authored-by: John DiSanti <[email protected]>
@github-actions
Copy link

github-actions bot commented Sep 6, 2022

A new generated diff is ready to view.

A new doc preview is ready to view.

add: test for RustType writable
add: `writable` property to RuntimeType that returns the type as a Writable
update: FluentClientGenerator to take a writable for retry
@github-actions
Copy link

github-actions bot commented Sep 7, 2022

A new generated diff is ready to view.

A new doc preview is ready to view.

@github-actions
Copy link

github-actions bot commented Sep 7, 2022

A new generated diff is ready to view.

A new doc preview is ready to view.

@Velfi Velfi enabled auto-merge (squash) September 7, 2022 17:17
@Velfi Velfi merged commit 4809a5b into main Sep 7, 2022
@Velfi Velfi deleted the remove/need-for-operation-aliasing branch September 7, 2022 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants