|
28 | 28 | class ContainerRegistryClient(ContainerRegistryBaseClient): |
29 | 29 | def __init__( |
30 | 30 | self, endpoint: str, credential: Optional["AsyncTokenCredential"] = None, *, audience, **kwargs: Any) -> None: |
31 | | - """Create a ContainerRegistryClient from an endpoint and a credential |
| 31 | + """Create a ContainerRegistryClient from an ACR endpoint and a credential. |
32 | 32 |
|
33 | | - :param endpoint: An ACR endpoint |
34 | | - :type endpoint: str |
35 | | - :param credential: The credential with which to authenticate |
| 33 | + :param str endpoint: An ACR endpoint. |
| 34 | + :param credential: The credential with which to authenticate. |
36 | 35 | :type credential: ~azure.core.credentials_async.AsyncTokenCredential |
| 36 | + :keyword api_version: API Version. The default value is "2021-07-01". Note that overriding this default value |
| 37 | + may result in unsupported behavior. |
| 38 | + :paramtype api_version: str |
37 | 39 | :keyword audience: URL to use for credential authentication with AAD. Its value could be |
38 | | - "https://management.azure.com", "https://management.chinacloudapi.cn", "https://management.microsoftazure.de" or |
39 | | - "https://management.usgovcloudapi.net" |
40 | | - :paramtype audience: ~azure.containerregistry.ContainerRegistryAudience or str |
| 40 | + "https://management.azure.com", "https://management.chinacloudapi.cn", "https://management.microsoftazure.de" |
| 41 | + or "https://management.usgovcloudapi.net". |
| 42 | + :paramtype audience: str |
41 | 43 | :returns: None |
42 | 44 | :rtype: None |
43 | | - :raises: if the provided api_version keyword-only argument isn't supported |
| 45 | + :raises ValueError: If the provided api_version keyword-only argument isn't supported or |
| 46 | + audience keyword-only argument isn't provided. |
44 | 47 |
|
45 | 48 | .. admonition:: Example: |
46 | 49 |
|
@@ -581,13 +584,18 @@ def update_repository_properties(self, repository: str, **kwargs: Any) -> Reposi |
581 | 584 | async def update_repository_properties( |
582 | 585 | self, *args: Union[str, RepositoryProperties], **kwargs: Any |
583 | 586 | ) -> RepositoryProperties: |
584 | | - """Set the properties of a repository |
| 587 | + """Set the permission properties of a repository. |
585 | 588 |
|
586 | | - :param args: |
587 | | - :type args: Union[str, ~azure.containerregistry.RepositoryProperties] |
588 | | - :param str repository: Name of the repository |
589 | | - :param properties: Properties to set for the repository |
| 589 | + The updatable properties include: `can_delete`, `can_list`, `can_read`, and `can_write`. |
| 590 | +
|
| 591 | + :param str repository: Name of the repository. |
| 592 | + :param properties: Properties to set for the repository. This is a positional-only |
| 593 | + parameter. Please provide either this or individual keyword parameters. |
590 | 594 | :type properties: ~azure.containerregistry.RepositoryProperties |
| 595 | + :keyword bool can_delete: Delete permissions for a repository. |
| 596 | + :keyword bool can_list: List permissions for a repository. |
| 597 | + :keyword bool can_read: Read permissions for a repository. |
| 598 | + :keyword bool can_write: Write permissions for a repository. |
591 | 599 | :rtype: ~azure.containerregistry.RepositoryProperties |
592 | 600 | :raises: ~azure.core.exceptions.ResourceNotFoundError |
593 | 601 | """ |
@@ -626,14 +634,19 @@ def update_manifest_properties( |
626 | 634 | async def update_manifest_properties( |
627 | 635 | self, *args: Union[str, ArtifactManifestProperties], **kwargs: Any |
628 | 636 | ) -> ArtifactManifestProperties: |
629 | | - """Set the properties for a manifest |
630 | | -
|
631 | | - :param args: |
632 | | - :type args: Union[str, ~azure.containerregistry.ArtifactManifestProperties] |
633 | | - :param str repository: Name of the repository |
634 | | - :param str tag_or_digest: Tag or digest of the manifest |
635 | | - :param properties: The property's values to be set |
636 | | - :type properties: ArtifactManifestProperties |
| 637 | + """Set the permission properties for a manifest. |
| 638 | +
|
| 639 | + The updatable properties include: `can_delete`, `can_list`, `can_read`, and `can_write`. |
| 640 | +
|
| 641 | + :param str repository: Repository the manifest belongs to. |
| 642 | + :param str tag_or_digest: Tag or digest of the manifest. |
| 643 | + :param properties: The property's values to be set. This is a positional-only |
| 644 | + parameter. Please provide either this or individual keyword parameters. |
| 645 | + :type properties: ~azure.containerregistry.ArtifactManifestProperties |
| 646 | + :keyword bool can_delete: Delete permissions for a manifest. |
| 647 | + :keyword bool can_list: List permissions for a manifest. |
| 648 | + :keyword bool can_read: Read permissions for a manifest. |
| 649 | + :keyword bool can_write: Write permissions for a manifest. |
637 | 650 | :rtype: ~azure.containerregistry.ArtifactManifestProperties |
638 | 651 | :raises: ~azure.core.exceptions.ResourceNotFoundError |
639 | 652 |
|
@@ -696,14 +709,19 @@ def update_tag_properties(self, repository: str, tag: str, **kwargs: Any) -> Art |
696 | 709 | async def update_tag_properties( |
697 | 710 | self, *args: Union[str, ArtifactTagProperties], **kwargs: Any |
698 | 711 | ) -> ArtifactTagProperties: |
699 | | - """Set the properties for a tag |
700 | | -
|
701 | | - :param args: |
702 | | - :type args: Union[str, ~azure.containerregistry.ArtifactTagProperties] |
703 | | - :param str repository: Repository the tag belongs to |
704 | | - :param str tag: Tag to set properties for |
705 | | - :param properties: The property's values to be set |
706 | | - :type properties: ArtifactTagProperties |
| 712 | + """Set the permission properties for a tag. |
| 713 | +
|
| 714 | + The updatable properties include: `can_delete`, `can_list`, `can_read`, and `can_write`. |
| 715 | +
|
| 716 | + :param str repository: Repository the tag belongs to. |
| 717 | + :param str tag: Tag to set properties for. |
| 718 | + :param properties: The property's values to be set. This is a positional-only |
| 719 | + parameter. Please provide either this or individual keyword parameters. |
| 720 | + :type properties: ~azure.containerregistry.ArtifactTagProperties |
| 721 | + :keyword bool can_delete: Delete permissions for a tag. |
| 722 | + :keyword bool can_list: List permissions for a tag. |
| 723 | + :keyword bool can_read: Read permissions for a tag. |
| 724 | + :keyword bool can_write: Write permissions for a tag. |
707 | 725 | :rtype: ~azure.containerregistry.ArtifactTagProperties |
708 | 726 | :raises: ~azure.core.exceptions.ResourceNotFoundError |
709 | 727 |
|
|
0 commit comments