File tree Expand file tree Collapse file tree 4 files changed +12
-16
lines changed
scaleway-async/scaleway_async/registry/v1
scaleway/scaleway/registry/v1 Expand file tree Collapse file tree 4 files changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -753,24 +753,21 @@ async def delete_tag(
753
753
self ,
754
754
* ,
755
755
tag_id : str ,
756
- force : bool ,
757
756
region : Optional [Region ] = None ,
757
+ force : Optional [bool ] = None ,
758
758
) -> Tag :
759
759
"""
760
760
Delete a tag.
761
761
Delete a given image tag. You must specify, in the endpoint, the `region` and `tag_id` parameters of the tag you want to delete.
762
762
:param region: Region to target. If none is passed will use default region from the config.
763
763
:param tag_id: UUID of the tag.
764
- :param force: If two tags share the same digest the deletion will fail unless this parameter is set to true.
764
+ :param force: If two tags share the same digest the deletion will fail unless this parameter is set to true (deprecated) .
765
765
:return: :class:`Tag <Tag>`
766
766
767
767
Usage:
768
768
::
769
769
770
- result = await api.delete_tag(
771
- tag_id="example",
772
- force=True,
773
- )
770
+ result = await api.delete_tag(tag_id="example")
774
771
"""
775
772
776
773
param_region = validate_path_param (
Original file line number Diff line number Diff line change @@ -585,7 +585,8 @@ class DeleteTagRequest:
585
585
UUID of the tag.
586
586
"""
587
587
588
- force : bool
588
+ force : Optional [ bool ]
589
589
"""
590
- If two tags share the same digest the deletion will fail unless this parameter is set to true.
590
+ If two tags share the same digest the deletion will fail unless this parameter is set to true (deprecated).
591
+ :deprecated
591
592
"""
Original file line number Diff line number Diff line change @@ -751,24 +751,21 @@ def delete_tag(
751
751
self ,
752
752
* ,
753
753
tag_id : str ,
754
- force : bool ,
755
754
region : Optional [Region ] = None ,
755
+ force : Optional [bool ] = None ,
756
756
) -> Tag :
757
757
"""
758
758
Delete a tag.
759
759
Delete a given image tag. You must specify, in the endpoint, the `region` and `tag_id` parameters of the tag you want to delete.
760
760
:param region: Region to target. If none is passed will use default region from the config.
761
761
:param tag_id: UUID of the tag.
762
- :param force: If two tags share the same digest the deletion will fail unless this parameter is set to true.
762
+ :param force: If two tags share the same digest the deletion will fail unless this parameter is set to true (deprecated) .
763
763
:return: :class:`Tag <Tag>`
764
764
765
765
Usage:
766
766
::
767
767
768
- result = api.delete_tag(
769
- tag_id="example",
770
- force=True,
771
- )
768
+ result = api.delete_tag(tag_id="example")
772
769
"""
773
770
774
771
param_region = validate_path_param (
Original file line number Diff line number Diff line change @@ -585,7 +585,8 @@ class DeleteTagRequest:
585
585
UUID of the tag.
586
586
"""
587
587
588
- force : bool
588
+ force : Optional [ bool ]
589
589
"""
590
- If two tags share the same digest the deletion will fail unless this parameter is set to true.
590
+ If two tags share the same digest the deletion will fail unless this parameter is set to true (deprecated).
591
+ :deprecated
591
592
"""
You can’t perform that action at this time.
0 commit comments