Skip to content

Conversation

@iscai-msft
Copy link
Contributor

fixes #810

@iscai-msft iscai-msft requested a review from lmazuel November 9, 2020 22:43

: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]
Copy link
Contributor Author

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(
Copy link
Contributor Author

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(
Copy link
Contributor Author

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(
Copy link
Contributor Author

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)
@iscai-msft iscai-msft merged commit 5d23913 into autorestv3 Nov 12, 2020
@iscai-msft iscai-msft deleted the directive_generate_item_paged branch November 12, 2020 17:30
iscai-msft added a commit that referenced this pull request Nov 13, 2020
…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)
iscai-msft added a commit that referenced this pull request Nov 23, 2020
…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)
  ...
iscai-msft added a commit that referenced this pull request Nov 23, 2020
…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)
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.

add directive that will allow users to overwrite ItemPaged and LROPoller

3 participants