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

[Container Registry] ACR list_repositories pageable #17714

Merged
merged 103 commits into from
Apr 6, 2021

Conversation

seankane-msft
Copy link
Member

No description provided.

@seankane-msft
Copy link
Member Author

/azp run python - containerregistry - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"

def prepare_request(next_link=None):
Copy link
Member

Choose a reason for hiding this comment

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

If this method is the same as the sync prepare_request, would it be possible to place this in a shared base class?

Copy link
Member Author

Choose a reason for hiding this comment

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

It probably is, this all had to be copied from the generated code. I'll open an issue to get this done over the next sprint. Thanks for the rec. #17817

error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"

def prepare_request(next_link=None):
Copy link
Member

Choose a reason for hiding this comment

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

Same comment, about potentially sharing code

Copy link
Member

@kristapratico kristapratico left a comment

Choose a reason for hiding this comment

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

I don't know the story behind the gen code copy, but assume there is an issue open for it? LGTM

@@ -24,15 +32,15 @@


class ContainerRepositoryClient(ContainerRegistryBaseClient):
def __init__(self, endpoint: str, repository: str, credential: "AsyncTokenCredential", **kwargs) -> None:
def __init__(self, endpoint: str, repository: str, credential: "AsyncTokenCredential", **kwargs: Dict[str, Any]) -> None:
Copy link
Member

Choose a reason for hiding this comment

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

I don't think Dict[str, Any] is wrong for **kwargs, but I think I've generally seen this documented as **Any in other libraries.

Copy link
Member

@swathipil swathipil left a comment

Choose a reason for hiding this comment

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

looks like Krista left the small nits that I was going to nit, so deleted them, but o/w LGTM

@seankane-msft
Copy link
Member Author

I don't know the story behind the gen code copy, but assume there is an issue open for it? LGTM

@kristapratico yes #17817 . The gen code copy had to happen because the link parsing isn't supported by the current autorest, but is in the works.

@seankane-msft
Copy link
Member Author

/check-enforcer evaluate

@seankane-msft seankane-msft merged commit 160e3ed into Azure:master Apr 6, 2021
@seankane-msft seankane-msft deleted the acr-pageable branch April 6, 2021 11:38
openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-python that referenced this pull request Feb 9, 2022
Adding xms ids for Blockchain (Azure#17714)

* Adding xms-ids for Blockchain

* Update readme.md

* Update readme.python.md

Co-authored-by: Yuchao Yan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants