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

LLC #875

Merged
merged 174 commits into from
Jul 14, 2021
Merged

LLC #875

merged 174 commits into from
Jul 14, 2021

Conversation

iscai-msft
Copy link
Contributor

No description provided.

@iscai-msft iscai-msft marked this pull request as draft January 27, 2021 18:02
@iscai-msft iscai-msft marked this pull request as ready for review January 28, 2021 17:02
@@ -47,9 +47,43 @@ def __init__(self, client, config, serializer, deserializer) -> None:
self._deserialize = deserializer
self._config = config

def _post_required_request(
self, path: str, body: int, custom_header: Optional[str] = None, query: Optional[int] = 30, **kwargs: Any
Copy link
Contributor Author

Choose a reason for hiding this comment

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

for parameter grouping, I'm ungrouping in the high level operation, and not passing the grouped model to the request.

designed this way bc imo llc is about removing models etc, didn't seem right to have users construct a model to pass to the request.

additionally, in the high level operation, the ungrouped parameters are all private (i.e. _path). Making them public for the request.

question of "what if users have a param called path, and and the grouped model input has a property also called path. Then, we would need to do some name padding for the ungrouped path parameter. Need to look more into whether this beahvior is allowed for users as well

@@ -558,39 +685,16 @@ async def put_simple_product_with_grouping(
_max_product_display_name = flatten_parameter_group.max_product_display_name
_generic_value = flatten_parameter_group.generic_value
_odata_value = flatten_parameter_group.odata_value

_simple_body_product = _models.SimpleProduct(
_body = _models.SimpleProduct(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

flattening + grouping

@@ -481,18 +595,45 @@ async def post_flattened_simple_product(
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))

_simple_body_product = _models.SimpleProduct(
_body = _models.SimpleProduct(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

flattened

@lmazuel lmazuel changed the title Prepare request LLC Jul 13, 2021
@iscai-msft
Copy link
Contributor Author

/azp run autorest.python - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@iscai-msft iscai-msft merged commit bacf5cf into autorestv3 Jul 14, 2021
@iscai-msft iscai-msft deleted the prepare_request branch July 14, 2021 22:37
iscai-msft added a commit that referenced this pull request Jul 14, 2021
@iscai-msft iscai-msft restored the prepare_request branch July 15, 2021 16:12
@iscai-msft iscai-msft deleted the prepare_request branch January 18, 2023 23:23
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.

2 participants