-
Notifications
You must be signed in to change notification settings - Fork 61
add support for custom pollers and pagers #821
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
Conversation
|
|
||
| :keyword callable cls: A custom type or function that will be passed the direct response | ||
| :return: An iterator like instance of either ProductResult or the result of cls(response) | ||
| :rtype: ~my.custom.aio.AsyncCustomPager[~custompollerpager.models.ProductResult] |
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.
This function has the custom pager. See imports for correct imports
| return deserialized | ||
| _get_multiple_pages_lro_initial.metadata = {'url': '/paging/multiple/lro'} # type: ignore | ||
|
|
||
| async def begin_get_multiple_pages_lro( |
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.
this method has custom poller
| ) | ||
| get_null_next_link_name_pages.metadata = {'url': '/paging/nullnextlink'} # type: ignore | ||
|
|
||
| def get_single_pages( |
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.
has custom pager
| return deserialized | ||
| _get_multiple_pages_lro_initial.metadata = {'url': '/paging/multiple/lro'} # type: ignore | ||
|
|
||
| def begin_get_multiple_pages_lro( |
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.
has custom poller
…into directive_generate_item_paged * 'autorestv3' of https://github.com/Azure/autorest.python: Update package.json Update ChangeLog.md include generation and tests for no operations (#802) fix lro response setting (#813) add tests for empty first page (#824) access error model from operation group's model property (#819)
…into paging_separate_operations * 'autorestv3' of https://github.com/Azure/autorest.python: Update package.json Update ChangeLog.md add support for custom pollers and pagers (#821) Update package.json Update ChangeLog.md include generation and tests for no operations (#802) fix lro response setting (#813) add tests for empty first page (#824) access error model from operation group's model property (#819)
…into multiapi_diff_signatures * 'autorestv3' of https://github.com/Azure/autorest.python: (25 commits) Update package.json Update ChangeLog.md add support for custom pollers and pagers (#821) Update package.json Update ChangeLog.md include generation and tests for no operations (#802) fix lro response setting (#813) add tests for empty first page (#824) access error model from operation group's model property (#819) Update package.json Update ChangeLog.md set discriminator value if readonly (#815) regen to get testserver updates (#814) allow services with no operations to generate (#801) Update package.json Update ChangeLog.md set default value for properties if x-ms-client-default set (#798) Update package.json Update ChangeLog.md add support for --python.debugger (#790) ...
…into add_typing_imports * 'autorestv3' of https://github.com/Azure/autorest.python: Update package.json Update ChangeLog.md add support for custom pollers and pagers (#821) Update package.json Update ChangeLog.md include generation and tests for no operations (#802) fix lro response setting (#813) add tests for empty first page (#824) access error model from operation group's model property (#819) Update package.json Update ChangeLog.md set discriminator value if readonly (#815) regen to get testserver updates (#814) allow services with no operations to generate (#801) Update package.json Update ChangeLog.md set default value for properties if x-ms-client-default set (#798)
fixes #810