@@ -117,14 +117,14 @@ def _get_digest_from_tag(self, repository: str, tag: str) -> str:
117
117
return tag_props .digest
118
118
119
119
@distributed_trace
120
- def delete_repository (self , repository : str , ** kwargs ) -> None :
120
+ def delete_repository (self , repository : str , ** kwargs : Any ) -> None :
121
121
"""Delete a repository. If the repository cannot be found or a response status code of
122
122
404 is returned an error will not be raised.
123
123
124
124
:param str repository: The repository to delete
125
125
:returns: None
126
126
:rtype: None
127
- :raises: ~azure.core.exceptions.HttpResponseError
127
+ :raises ~azure.core.exceptions.HttpResponseError:
128
128
129
129
.. admonition:: Example:
130
130
@@ -138,14 +138,14 @@ def delete_repository(self, repository: str, **kwargs) -> None:
138
138
self ._client .container_registry .delete_repository (repository , ** kwargs )
139
139
140
140
@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 ]:
142
142
"""List all repositories
143
143
144
144
:keyword results_per_page: Number of repositories to return per page
145
145
:paramtype results_per_page: int
146
146
:returns: An iterable of strings
147
147
:rtype: ~azure.core.paging.ItemPaged[str]
148
- :raises: ~azure.core.exceptions.HttpResponseError
148
+ :raises ~azure.core.exceptions.HttpResponseError:
149
149
150
150
.. admonition:: Example:
151
151
@@ -244,13 +244,13 @@ def get_next(next_link=None):
244
244
return ItemPaged (get_next , extract_data )
245
245
246
246
@distributed_trace
247
- def get_repository_properties (self , repository : str , ** kwargs ) -> RepositoryProperties :
247
+ def get_repository_properties (self , repository : str , ** kwargs : Any ) -> RepositoryProperties :
248
248
"""Get the properties of a repository
249
249
250
250
:param str repository: Name of the repository
251
251
:rtype: ~azure.containerregistry.RepositoryProperties
252
252
:return: The properties of a repository
253
- :raises: ~azure.core.exceptions.ResourceNotFoundError
253
+ :raises ~azure.core.exceptions.ResourceNotFoundError:
254
254
"""
255
255
return RepositoryProperties ._from_generated ( # pylint: disable=protected-access
256
256
self ._client .container_registry .get_properties (repository , ** kwargs )
@@ -263,7 +263,7 @@ def list_manifest_properties(
263
263
* ,
264
264
order_by : Optional [Union ["ArtifactManifestOrder" , str ]] = None ,
265
265
results_per_page : Optional [int ] = None ,
266
- ** kwargs ,
266
+ ** kwargs : Any ,
267
267
) -> ItemPaged [ArtifactManifestProperties ]:
268
268
"""List the artifacts for a repository
269
269
@@ -274,7 +274,7 @@ def list_manifest_properties(
274
274
:paramtype results_per_page: int
275
275
:returns: An iterable of :class:`~azure.containerregistry.ArtifactManifestProperties`
276
276
:rtype: ~azure.core.paging.ItemPaged[~azure.containerregistry.ArtifactManifestProperties]
277
- :raises: ~azure.core.exceptions.ResourceNotFoundError
277
+ :raises ~azure.core.exceptions.ResourceNotFoundError:
278
278
"""
279
279
name = repository
280
280
last = kwargs .pop ("last" , None )
@@ -380,15 +380,15 @@ def get_next(next_link=None):
380
380
return ItemPaged (get_next , extract_data )
381
381
382
382
@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 :
384
384
"""Delete a tag from a repository. If the tag cannot be found or a response status code of
385
385
404 is returned an error will not be raised.
386
386
387
387
:param str repository: Name of the repository the tag belongs to
388
388
:param str tag: The tag to be deleted
389
389
:returns: None
390
390
:rtype: None
391
- :raises: ~azure.core.exceptions.HttpResponseError
391
+ :raises ~azure.core.exceptions.HttpResponseError:
392
392
393
393
Example
394
394
@@ -404,14 +404,14 @@ def delete_tag(self, repository: str, tag: str, **kwargs) -> None:
404
404
self ._client .container_registry .delete_tag (repository , tag , ** kwargs )
405
405
406
406
@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 :
408
408
"""Get the properties of a registry artifact
409
409
410
410
:param str repository: Name of the repository
411
411
:param str tag_or_digest: Tag or digest of the manifest
412
412
:return: The properties of a registry artifact
413
413
:rtype: ~azure.containerregistry.ArtifactManifestProperties
414
- :raises: ~azure.core.exceptions.ResourceNotFoundError
414
+ :raises ~azure.core.exceptions.ResourceNotFoundError:
415
415
416
416
Example
417
417
@@ -437,14 +437,14 @@ def get_manifest_properties(self, repository: str, tag_or_digest: str, **kwargs)
437
437
)
438
438
439
439
@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 :
441
441
"""Get the properties for a tag
442
442
443
443
:param str repository: Name of the repository
444
444
:param str tag: The tag to get tag properties for
445
445
:return: The properties for a tag
446
446
:rtype: ~azure.containerregistry.ArtifactTagProperties
447
- :raises: ~azure.core.exceptions.ResourceNotFoundError
447
+ :raises ~azure.core.exceptions.ResourceNotFoundError:
448
448
449
449
Example
450
450
@@ -470,7 +470,7 @@ def list_tag_properties(
470
470
* ,
471
471
order_by : Optional [Union ["ArtifactTagOrder" , str ]] = None ,
472
472
results_per_page : Optional [int ] = None ,
473
- ** kwargs ,
473
+ ** kwargs : Any ,
474
474
) -> ItemPaged [ArtifactTagProperties ]:
475
475
"""List the tags for a repository
476
476
@@ -481,7 +481,7 @@ def list_tag_properties(
481
481
:paramtype results_per_page: int
482
482
:returns: An iterable of :class:`~azure.containerregistry.ArtifactTagProperties`
483
483
:rtype: ~azure.core.paging.ItemPaged[~azure.containerregistry.ArtifactTagProperties]
484
- :raises: ~azure.core.exceptions.ResourceNotFoundError
484
+ :raises ~azure.core.exceptions.ResourceNotFoundError:
485
485
486
486
Example
487
487
@@ -612,7 +612,7 @@ def update_manifest_properties(
612
612
parameter. Please provide either this or individual keyword parameters.
613
613
:type properties: ~azure.containerregistry.ArtifactManifestProperties
614
614
:rtype: ~azure.containerregistry.ArtifactManifestProperties
615
- :raises: ~azure.core.exceptions.ResourceNotFoundError
615
+ :raises ~azure.core.exceptions.ResourceNotFoundError:
616
616
617
617
Example
618
618
@@ -656,7 +656,7 @@ def update_manifest_properties(
656
656
:keyword bool can_read: Read permissions for a manifest.
657
657
:keyword bool can_write: Write permissions for a manifest.
658
658
:rtype: ~azure.containerregistry.ArtifactManifestProperties
659
- :raises: ~azure.core.exceptions.ResourceNotFoundError
659
+ :raises ~azure.core.exceptions.ResourceNotFoundError:
660
660
661
661
Example
662
662
@@ -679,7 +679,7 @@ def update_manifest_properties(
679
679
680
680
@distributed_trace
681
681
def update_manifest_properties (
682
- self , * args : Union [str , ArtifactManifestProperties ], ** kwargs
682
+ self , * args : Union [str , ArtifactManifestProperties ], ** kwargs : Any
683
683
) -> ArtifactManifestProperties :
684
684
repository = str (args [0 ])
685
685
tag_or_digest = str (args [1 ])
@@ -720,7 +720,7 @@ def update_tag_properties(
720
720
parameter. Please provide either this or individual keyword parameters.
721
721
:type properties: ~azure.containerregistry.ArtifactTagProperties
722
722
:rtype: ~azure.containerregistry.ArtifactTagProperties
723
- :raises: ~azure.core.exceptions.ResourceNotFoundError
723
+ :raises ~azure.core.exceptions.ResourceNotFoundError:
724
724
725
725
Example
726
726
@@ -761,7 +761,7 @@ def update_tag_properties(
761
761
:keyword bool can_read: Read permissions for a tag.
762
762
:keyword bool can_write: Write permissions for a tag.
763
763
:rtype: ~azure.containerregistry.ArtifactTagProperties
764
- :raises: ~azure.core.exceptions.ResourceNotFoundError
764
+ :raises ~azure.core.exceptions.ResourceNotFoundError:
765
765
766
766
Example
767
767
@@ -782,7 +782,7 @@ def update_tag_properties(
782
782
"""
783
783
784
784
@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 :
786
786
repository = str (args [0 ])
787
787
tag = str (args [1 ])
788
788
properties = None
@@ -817,7 +817,7 @@ def update_repository_properties(
817
817
parameter. Please provide either this or individual keyword parameters.
818
818
:type properties: ~azure.containerregistry.RepositoryProperties
819
819
:rtype: ~azure.containerregistry.RepositoryProperties
820
- :raises: ~azure.core.exceptions.ResourceNotFoundError
820
+ :raises ~azure.core.exceptions.ResourceNotFoundError:
821
821
"""
822
822
823
823
@overload
@@ -841,11 +841,13 @@ def update_repository_properties(
841
841
:keyword bool can_read: Read permissions for a repository.
842
842
:keyword bool can_write: Write permissions for a repository.
843
843
:rtype: ~azure.containerregistry.RepositoryProperties
844
- :raises: ~azure.core.exceptions.ResourceNotFoundError
844
+ :raises ~azure.core.exceptions.ResourceNotFoundError:
845
845
"""
846
846
847
847
@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 :
849
851
repository = str (args [0 ])
850
852
properties = None
851
853
if len (args ) == 2 :
@@ -872,7 +874,7 @@ def set_manifest(
872
874
* ,
873
875
tag : Optional [str ] = None ,
874
876
media_type : str = OCI_IMAGE_MANIFEST ,
875
- ** kwargs ,
877
+ ** kwargs : Any ,
876
878
) -> str :
877
879
"""Set a manifest for an artifact.
878
880
@@ -919,7 +921,7 @@ def set_manifest(
919
921
return digest
920
922
921
923
@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 :
923
925
"""Get the manifest for an artifact.
924
926
925
927
:param str repository: Name of the repository.
@@ -965,7 +967,7 @@ def get_manifest(self, repository: str, tag_or_digest: str, **kwargs) -> GetMani
965
967
return GetManifestResult (digest = digest , manifest = manifest_json , media_type = media_type )
966
968
967
969
@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 ]:
969
971
"""Upload an artifact blob.
970
972
971
973
:param str repository: Name of the repository.
@@ -1017,7 +1019,7 @@ def _upload_blob_chunk(self, location: str, data: IO[bytes], **kwargs) -> Tuple[
1017
1019
return f"sha256:{ hasher .hexdigest ()} " , location , blob_size
1018
1020
1019
1021
@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 :
1021
1023
"""Download a blob that is part of an artifact to a stream.
1022
1024
1023
1025
:param str repository: Name of the repository.
@@ -1052,14 +1054,14 @@ def download_blob(self, repository: str, digest: str, **kwargs) -> DownloadBlobS
1052
1054
)
1053
1055
1054
1056
@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 :
1056
1058
"""Delete a manifest. If the manifest cannot be found or a response status code of
1057
1059
404 is returned an error will not be raised.
1058
1060
1059
1061
:param str repository: Name of the repository the manifest belongs to
1060
1062
:param str tag_or_digest: Tag or digest of the manifest to be deleted
1061
1063
:returns: None
1062
- :raises: ~azure.core.exceptions.HttpResponseError
1064
+ :raises ~azure.core.exceptions.HttpResponseError:
1063
1065
1064
1066
Example
1065
1067
@@ -1077,7 +1079,7 @@ def delete_manifest(self, repository: str, tag_or_digest: str, **kwargs) -> None
1077
1079
self ._client .container_registry .delete_manifest (repository , tag_or_digest , ** kwargs )
1078
1080
1079
1081
@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 :
1081
1083
"""Delete a blob. If the blob cannot be found or a response status code of
1082
1084
404 is returned an error will not be raised.
1083
1085
0 commit comments