Skip to content

vendor request conversion#1048

Merged
iscai-msft merged 8 commits intoautorestv3from
vendor_conversion
Sep 27, 2021
Merged

vendor request conversion#1048
iscai-msft merged 8 commits intoautorestv3from
vendor_conversion

Conversation

@iscai-msft
Copy link
Contributor

No description provided.

def _convert_request(request, files=None):
data = request.content if not files else None
request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data)
if files:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since the properties files and data are legacy properties, decided not to go with them. With our new request's content property, we don't distinguish between "files" and "data", which we need to for old requests. So here, if we're using files (which people very rarely do), we do an additional set_formdata_body here

# --------------------------------------------------------------------------

from ._paging_operations import PagingOperations
from azure.core.pipeline.transport import HttpRequest
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some weird diffs going on here. Basically, I realized I had a duplicate out-of-date CustomPollerPager in my version tolerant folder, so I deleted it, which for some reason has caused these weird diffs

@iscai-msft iscai-msft merged commit 1cfb2c3 into autorestv3 Sep 27, 2021
@iscai-msft iscai-msft deleted the vendor_conversion branch September 27, 2021 19:31
iscai-msft added a commit that referenced this pull request Sep 28, 2021
…into remove_metadata_version_tolerant

* 'autorestv3' of https://github.com/Azure/autorest.python:
  Update package.json
  Update ChangeLog.md
  fix spacing
  run all tests and don't regenerate
  vendor request conversion (#1048)
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.

1 participant