@@ -117,14 +117,14 @@ def _get_digest_from_tag(self, repository: str, tag: str) -> str:
117117 return tag_props .digest
118118
119119 @distributed_trace
120- def delete_repository (self , repository : str , ** kwargs ) -> None :
120+ def delete_repository (self , repository : str , ** kwargs : Any ) -> None :
121121 """Delete a repository. If the repository cannot be found or a response status code of
122122 404 is returned an error will not be raised.
123123
124124 :param str repository: The repository to delete
125125 :returns: None
126126 :rtype: None
127- :raises: ~azure.core.exceptions.HttpResponseError
127+ :raises ~azure.core.exceptions.HttpResponseError:
128128
129129 .. admonition:: Example:
130130
@@ -138,14 +138,14 @@ def delete_repository(self, repository: str, **kwargs) -> None:
138138 self ._client .container_registry .delete_repository (repository , ** kwargs )
139139
140140 @distributed_trace
141- def list_repository_names (self , * , results_per_page : Optional [int ] = None , ** kwargs ) -> ItemPaged [str ]:
141+ def list_repository_names (self , * , results_per_page : Optional [int ] = None , ** kwargs : Any ) -> ItemPaged [str ]:
142142 """List all repositories
143143
144144 :keyword results_per_page: Number of repositories to return per page
145145 :paramtype results_per_page: int
146146 :returns: An iterable of strings
147147 :rtype: ~azure.core.paging.ItemPaged[str]
148- :raises: ~azure.core.exceptions.HttpResponseError
148+ :raises ~azure.core.exceptions.HttpResponseError:
149149
150150 .. admonition:: Example:
151151
@@ -244,13 +244,13 @@ def get_next(next_link=None):
244244 return ItemPaged (get_next , extract_data )
245245
246246 @distributed_trace
247- def get_repository_properties (self , repository : str , ** kwargs ) -> RepositoryProperties :
247+ def get_repository_properties (self , repository : str , ** kwargs : Any ) -> RepositoryProperties :
248248 """Get the properties of a repository
249249
250250 :param str repository: Name of the repository
251251 :rtype: ~azure.containerregistry.RepositoryProperties
252252 :return: The properties of a repository
253- :raises: ~azure.core.exceptions.ResourceNotFoundError
253+ :raises ~azure.core.exceptions.ResourceNotFoundError:
254254 """
255255 return RepositoryProperties ._from_generated ( # pylint: disable=protected-access
256256 self ._client .container_registry .get_properties (repository , ** kwargs )
@@ -263,7 +263,7 @@ def list_manifest_properties(
263263 * ,
264264 order_by : Optional [Union ["ArtifactManifestOrder" , str ]] = None ,
265265 results_per_page : Optional [int ] = None ,
266- ** kwargs ,
266+ ** kwargs : Any ,
267267 ) -> ItemPaged [ArtifactManifestProperties ]:
268268 """List the artifacts for a repository
269269
@@ -274,7 +274,7 @@ def list_manifest_properties(
274274 :paramtype results_per_page: int
275275 :returns: An iterable of :class:`~azure.containerregistry.ArtifactManifestProperties`
276276 :rtype: ~azure.core.paging.ItemPaged[~azure.containerregistry.ArtifactManifestProperties]
277- :raises: ~azure.core.exceptions.ResourceNotFoundError
277+ :raises ~azure.core.exceptions.ResourceNotFoundError:
278278 """
279279 name = repository
280280 last = kwargs .pop ("last" , None )
@@ -380,15 +380,15 @@ def get_next(next_link=None):
380380 return ItemPaged (get_next , extract_data )
381381
382382 @distributed_trace
383- def delete_tag (self , repository : str , tag : str , ** kwargs ) -> None :
383+ def delete_tag (self , repository : str , tag : str , ** kwargs : Any ) -> None :
384384 """Delete a tag from a repository. If the tag cannot be found or a response status code of
385385 404 is returned an error will not be raised.
386386
387387 :param str repository: Name of the repository the tag belongs to
388388 :param str tag: The tag to be deleted
389389 :returns: None
390390 :rtype: None
391- :raises: ~azure.core.exceptions.HttpResponseError
391+ :raises ~azure.core.exceptions.HttpResponseError:
392392
393393 Example
394394
@@ -404,14 +404,14 @@ def delete_tag(self, repository: str, tag: str, **kwargs) -> None:
404404 self ._client .container_registry .delete_tag (repository , tag , ** kwargs )
405405
406406 @distributed_trace
407- def get_manifest_properties (self , repository : str , tag_or_digest : str , ** kwargs ) -> ArtifactManifestProperties :
407+ def get_manifest_properties (self , repository : str , tag_or_digest : str , ** kwargs : Any ) -> ArtifactManifestProperties :
408408 """Get the properties of a registry artifact
409409
410410 :param str repository: Name of the repository
411411 :param str tag_or_digest: Tag or digest of the manifest
412412 :return: The properties of a registry artifact
413413 :rtype: ~azure.containerregistry.ArtifactManifestProperties
414- :raises: ~azure.core.exceptions.ResourceNotFoundError
414+ :raises ~azure.core.exceptions.ResourceNotFoundError:
415415
416416 Example
417417
@@ -437,14 +437,14 @@ def get_manifest_properties(self, repository: str, tag_or_digest: str, **kwargs)
437437 )
438438
439439 @distributed_trace
440- def get_tag_properties (self , repository : str , tag : str , ** kwargs ) -> ArtifactTagProperties :
440+ def get_tag_properties (self , repository : str , tag : str , ** kwargs : Any ) -> ArtifactTagProperties :
441441 """Get the properties for a tag
442442
443443 :param str repository: Name of the repository
444444 :param str tag: The tag to get tag properties for
445445 :return: The properties for a tag
446446 :rtype: ~azure.containerregistry.ArtifactTagProperties
447- :raises: ~azure.core.exceptions.ResourceNotFoundError
447+ :raises ~azure.core.exceptions.ResourceNotFoundError:
448448
449449 Example
450450
@@ -470,7 +470,7 @@ def list_tag_properties(
470470 * ,
471471 order_by : Optional [Union ["ArtifactTagOrder" , str ]] = None ,
472472 results_per_page : Optional [int ] = None ,
473- ** kwargs ,
473+ ** kwargs : Any ,
474474 ) -> ItemPaged [ArtifactTagProperties ]:
475475 """List the tags for a repository
476476
@@ -481,7 +481,7 @@ def list_tag_properties(
481481 :paramtype results_per_page: int
482482 :returns: An iterable of :class:`~azure.containerregistry.ArtifactTagProperties`
483483 :rtype: ~azure.core.paging.ItemPaged[~azure.containerregistry.ArtifactTagProperties]
484- :raises: ~azure.core.exceptions.ResourceNotFoundError
484+ :raises ~azure.core.exceptions.ResourceNotFoundError:
485485
486486 Example
487487
@@ -612,7 +612,7 @@ def update_manifest_properties(
612612 parameter. Please provide either this or individual keyword parameters.
613613 :type properties: ~azure.containerregistry.ArtifactManifestProperties
614614 :rtype: ~azure.containerregistry.ArtifactManifestProperties
615- :raises: ~azure.core.exceptions.ResourceNotFoundError
615+ :raises ~azure.core.exceptions.ResourceNotFoundError:
616616
617617 Example
618618
@@ -656,7 +656,7 @@ def update_manifest_properties(
656656 :keyword bool can_read: Read permissions for a manifest.
657657 :keyword bool can_write: Write permissions for a manifest.
658658 :rtype: ~azure.containerregistry.ArtifactManifestProperties
659- :raises: ~azure.core.exceptions.ResourceNotFoundError
659+ :raises ~azure.core.exceptions.ResourceNotFoundError:
660660
661661 Example
662662
@@ -679,7 +679,7 @@ def update_manifest_properties(
679679
680680 @distributed_trace
681681 def update_manifest_properties (
682- self , * args : Union [str , ArtifactManifestProperties ], ** kwargs
682+ self , * args : Union [str , ArtifactManifestProperties ], ** kwargs : Any
683683 ) -> ArtifactManifestProperties :
684684 repository = str (args [0 ])
685685 tag_or_digest = str (args [1 ])
@@ -720,7 +720,7 @@ def update_tag_properties(
720720 parameter. Please provide either this or individual keyword parameters.
721721 :type properties: ~azure.containerregistry.ArtifactTagProperties
722722 :rtype: ~azure.containerregistry.ArtifactTagProperties
723- :raises: ~azure.core.exceptions.ResourceNotFoundError
723+ :raises ~azure.core.exceptions.ResourceNotFoundError:
724724
725725 Example
726726
@@ -761,7 +761,7 @@ def update_tag_properties(
761761 :keyword bool can_read: Read permissions for a tag.
762762 :keyword bool can_write: Write permissions for a tag.
763763 :rtype: ~azure.containerregistry.ArtifactTagProperties
764- :raises: ~azure.core.exceptions.ResourceNotFoundError
764+ :raises ~azure.core.exceptions.ResourceNotFoundError:
765765
766766 Example
767767
@@ -782,7 +782,7 @@ def update_tag_properties(
782782 """
783783
784784 @distributed_trace
785- def update_tag_properties (self , * args : Union [str , ArtifactTagProperties ], ** kwargs ) -> ArtifactTagProperties :
785+ def update_tag_properties (self , * args : Union [str , ArtifactTagProperties ], ** kwargs : Any ) -> ArtifactTagProperties :
786786 repository = str (args [0 ])
787787 tag = str (args [1 ])
788788 properties = None
@@ -817,7 +817,7 @@ def update_repository_properties(
817817 parameter. Please provide either this or individual keyword parameters.
818818 :type properties: ~azure.containerregistry.RepositoryProperties
819819 :rtype: ~azure.containerregistry.RepositoryProperties
820- :raises: ~azure.core.exceptions.ResourceNotFoundError
820+ :raises ~azure.core.exceptions.ResourceNotFoundError:
821821 """
822822
823823 @overload
@@ -841,11 +841,13 @@ def update_repository_properties(
841841 :keyword bool can_read: Read permissions for a repository.
842842 :keyword bool can_write: Write permissions for a repository.
843843 :rtype: ~azure.containerregistry.RepositoryProperties
844- :raises: ~azure.core.exceptions.ResourceNotFoundError
844+ :raises ~azure.core.exceptions.ResourceNotFoundError:
845845 """
846846
847847 @distributed_trace
848- def update_repository_properties (self , * args : Union [str , RepositoryProperties ], ** kwargs ) -> RepositoryProperties :
848+ def update_repository_properties (
849+ self , * args : Union [str , RepositoryProperties ], ** kwargs : Any
850+ ) -> RepositoryProperties :
849851 repository = str (args [0 ])
850852 properties = None
851853 if len (args ) == 2 :
@@ -872,7 +874,7 @@ def set_manifest(
872874 * ,
873875 tag : Optional [str ] = None ,
874876 media_type : str = OCI_IMAGE_MANIFEST ,
875- ** kwargs ,
877+ ** kwargs : Any ,
876878 ) -> str :
877879 """Set a manifest for an artifact.
878880
@@ -919,7 +921,7 @@ def set_manifest(
919921 return digest
920922
921923 @distributed_trace
922- def get_manifest (self , repository : str , tag_or_digest : str , ** kwargs ) -> GetManifestResult :
924+ def get_manifest (self , repository : str , tag_or_digest : str , ** kwargs : Any ) -> GetManifestResult :
923925 """Get the manifest for an artifact.
924926
925927 :param str repository: Name of the repository.
@@ -965,7 +967,7 @@ def get_manifest(self, repository: str, tag_or_digest: str, **kwargs) -> GetMani
965967 return GetManifestResult (digest = digest , manifest = manifest_json , media_type = media_type )
966968
967969 @distributed_trace
968- def upload_blob (self , repository : str , data : IO [bytes ], ** kwargs ) -> Tuple [str , int ]:
970+ def upload_blob (self , repository : str , data : IO [bytes ], ** kwargs : Any ) -> Tuple [str , int ]:
969971 """Upload an artifact blob.
970972
971973 :param str repository: Name of the repository.
@@ -1017,7 +1019,7 @@ def _upload_blob_chunk(self, location: str, data: IO[bytes], **kwargs) -> Tuple[
10171019 return f"sha256:{ hasher .hexdigest ()} " , location , blob_size
10181020
10191021 @distributed_trace
1020- def download_blob (self , repository : str , digest : str , ** kwargs ) -> DownloadBlobStream :
1022+ def download_blob (self , repository : str , digest : str , ** kwargs : Any ) -> DownloadBlobStream :
10211023 """Download a blob that is part of an artifact to a stream.
10221024
10231025 :param str repository: Name of the repository.
@@ -1052,14 +1054,14 @@ def download_blob(self, repository: str, digest: str, **kwargs) -> DownloadBlobS
10521054 )
10531055
10541056 @distributed_trace
1055- def delete_manifest (self , repository : str , tag_or_digest : str , ** kwargs ) -> None :
1057+ def delete_manifest (self , repository : str , tag_or_digest : str , ** kwargs : Any ) -> None :
10561058 """Delete a manifest. If the manifest cannot be found or a response status code of
10571059 404 is returned an error will not be raised.
10581060
10591061 :param str repository: Name of the repository the manifest belongs to
10601062 :param str tag_or_digest: Tag or digest of the manifest to be deleted
10611063 :returns: None
1062- :raises: ~azure.core.exceptions.HttpResponseError
1064+ :raises ~azure.core.exceptions.HttpResponseError:
10631065
10641066 Example
10651067
@@ -1077,7 +1079,7 @@ def delete_manifest(self, repository: str, tag_or_digest: str, **kwargs) -> None
10771079 self ._client .container_registry .delete_manifest (repository , tag_or_digest , ** kwargs )
10781080
10791081 @distributed_trace
1080- def delete_blob (self , repository : str , digest : str , ** kwargs ) -> None :
1082+ def delete_blob (self , repository : str , digest : str , ** kwargs : Any ) -> None :
10811083 """Delete a blob. If the blob cannot be found or a response status code of
10821084 404 is returned an error will not be raised.
10831085
0 commit comments