python-gitlab 5.2.0__py3-none-any.whl → 5.3.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
gitlab/_version.py CHANGED
@@ -3,4 +3,4 @@ __copyright__ = "Copyright 2013-2019 Gauvain Pocentek, 2019-2023 python-gitlab t
3
3
  __email__ = "gauvainpocentek@gmail.com"
4
4
  __license__ = "LGPL3"
5
5
  __title__ = "python-gitlab"
6
- __version__ = "5.2.0"
6
+ __version__ = "5.3.0"
@@ -56,6 +56,7 @@ from .project_access_tokens import *
56
56
  from .projects import *
57
57
  from .push_rules import *
58
58
  from .registry_protection_rules import *
59
+ from .registry_repository_protection_rules import *
59
60
  from .releases import *
60
61
  from .repositories import *
61
62
  from .resource_groups import *
@@ -86,9 +86,12 @@ from .pipelines import ( # noqa: F401
86
86
  )
87
87
  from .project_access_tokens import ProjectAccessTokenManager # noqa: F401
88
88
  from .push_rules import ProjectPushRulesManager # noqa: F401
89
- from .registry_protection_rules import ( # noqa: F401
89
+ from .registry_protection_rules import ( # noqa: F401; deprecated
90
90
  ProjectRegistryProtectionRuleManager,
91
91
  )
92
+ from .registry_repository_protection_rules import ( # noqa: F401
93
+ ProjectRegistryRepositoryProtectionRuleManager,
94
+ )
92
95
  from .releases import ProjectReleaseManager # noqa: F401
93
96
  from .repositories import RepositoryMixin
94
97
  from .resource_groups import ProjectResourceGroupManager
@@ -239,6 +242,7 @@ class Project(
239
242
  protectedtags: ProjectProtectedTagManager
240
243
  pushrules: ProjectPushRulesManager
241
244
  registry_protection_rules: ProjectRegistryProtectionRuleManager
245
+ registry_repository_protection_rules: ProjectRegistryRepositoryProtectionRuleManager
242
246
  releases: ProjectReleaseManager
243
247
  resource_groups: ProjectResourceGroupManager
244
248
  remote_mirrors: "ProjectRemoteMirrorManager"
@@ -0,0 +1,35 @@
1
+ from gitlab.base import RESTManager, RESTObject
2
+ from gitlab.mixins import CreateMixin, ListMixin, SaveMixin, UpdateMethod, UpdateMixin
3
+ from gitlab.types import RequiredOptional
4
+
5
+ __all__ = [
6
+ "ProjectRegistryRepositoryProtectionRule",
7
+ "ProjectRegistryRepositoryProtectionRuleManager",
8
+ ]
9
+
10
+
11
+ class ProjectRegistryRepositoryProtectionRule(SaveMixin, RESTObject):
12
+ _repr_attr = "repository_path_pattern"
13
+
14
+
15
+ class ProjectRegistryRepositoryProtectionRuleManager(
16
+ ListMixin, CreateMixin, UpdateMixin, RESTManager
17
+ ):
18
+ _path = "/projects/{project_id}/registry/repository/protection/rules"
19
+ _obj_cls = ProjectRegistryRepositoryProtectionRule
20
+ _from_parent_attrs = {"project_id": "id"}
21
+ _create_attrs = RequiredOptional(
22
+ required=("repository_path_pattern",),
23
+ optional=(
24
+ "minimum_access_level_for_push",
25
+ "minimum_access_level_for_delete",
26
+ ),
27
+ )
28
+ _update_attrs = RequiredOptional(
29
+ optional=(
30
+ "repository_path_pattern",
31
+ "minimum_access_level_for_push",
32
+ "minimum_access_level_for_delete",
33
+ ),
34
+ )
35
+ _update_method = UpdateMethod.PATCH
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-gitlab
3
- Version: 5.2.0
3
+ Version: 5.3.0
4
4
  Summary: The python wrapper for the GitLab REST and GraphQL APIs.
5
5
  Author-email: Gauvain Pocentek <gauvain@pocentek.net>
6
6
  Maintainer-email: John Villalovos <john@sodarock.com>, Max Wittig <max.wittig@siemens.com>, Nejc Habjan <nejc.habjan@siemens.com>, Roger Meier <r.meier@siemens.com>
@@ -1,6 +1,6 @@
1
1
  gitlab/__init__.py,sha256=UP73h54550MIXpRt5OCLJJ-oBHIx1iHSdxmGARfhbO4,1440
2
2
  gitlab/__main__.py,sha256=HTesNl0UAU6mPb9EXWkTKMy6Q6pAUxGi3iPnDHTE2uE,68
3
- gitlab/_version.py,sha256=bHxzVyLUxRjFLURgayK0epTEUF6zJeW-Fn5SA-X5RU0,249
3
+ gitlab/_version.py,sha256=IlLSu5MBFtgm1x-7MWRcmWiS08XRZAvuGg9iod-SY0E,249
4
4
  gitlab/base.py,sha256=-4DNPEWtOB1sGmETTivrJVyl-DWtbmWTUIDTHpenF9Y,13810
5
5
  gitlab/cli.py,sha256=d3-LtZuA1Fgon5wZWn4c3E70fTIu4mM4Juyhh3F8EBs,12416
6
6
  gitlab/client.py,sha256=RLJZ7QIyc_bprHYCt0yu81ltImd4dLOHmMB_PP2H9VE,54798
@@ -17,7 +17,7 @@ gitlab/_backends/protocol.py,sha256=m5qSz1o3i0H4XJCWnqx0wIFilOIU9cKxzFsYxLL6Big,
17
17
  gitlab/_backends/requests_backend.py,sha256=CrSDTfkvi17dT4kTU8R3qQFBNCPJqEfBJq4gJ2GXleA,5534
18
18
  gitlab/v4/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  gitlab/v4/cli.py,sha256=vVWbeOWUdIPagCRcR-myY6E5tPVmhomroT1y6r2HwsQ,22721
20
- gitlab/v4/objects/__init__.py,sha256=PKdDFYJ4JCPjcF7lJIwasdquvXj8TnqW0u729o-nG2w,2101
20
+ gitlab/v4/objects/__init__.py,sha256=nlSGSvKFK9b9o131iAzjT5aB2DfUldTpsSgVl1AjeHk,2153
21
21
  gitlab/v4/objects/access_requests.py,sha256=pPYwB-b4fvKVdBoBRpzx2ensiMXbQwmBkN0XBh6ScaA,923
22
22
  gitlab/v4/objects/appearance.py,sha256=uMt0bjo_KlxwKHItFzGMY9vXm5e489UG_o0EcFVJE8E,1932
23
23
  gitlab/v4/objects/applications.py,sha256=FB1Se6Xa3CFLJlSeZ7lLoyAwY8cAF4DUDsuc59NGpcs,591
@@ -73,9 +73,10 @@ gitlab/v4/objects/pages.py,sha256=Z9x9Sd21daSLmapkBLoV3bKmxQu-JFtrHgJMBjfNbg8,18
73
73
  gitlab/v4/objects/personal_access_tokens.py,sha256=vMsAytE5czai3fpyTCyV1sR3cZDZRhvI06u08L8O7mw,1315
74
74
  gitlab/v4/objects/pipelines.py,sha256=nQrzNW6WCTcDCqz_nl8i7YYGpXfRaEVGGpeRdObjeW0,10664
75
75
  gitlab/v4/objects/project_access_tokens.py,sha256=z_BCaBtXC7wzGVN6Ip0H72VwHID8XEBHDddCw0J8hO0,1043
76
- gitlab/v4/objects/projects.py,sha256=or1cPn-wMJ97tFe3g6ojMmzOeTcQigBV5u6YhzlxvOU,45482
76
+ gitlab/v4/objects/projects.py,sha256=YBJjgTb6c38tR0fzvwe7dSiZXn0KHiVQAsFfE0KfyvY,45703
77
77
  gitlab/v4/objects/push_rules.py,sha256=0dKMWEzF5h1zATh0_j_SvjQ7HKx9_5M7J9hzDGB66Rc,3041
78
78
  gitlab/v4/objects/registry_protection_rules.py,sha256=bZsUAjoxwQEHOfr4Bxz6FQA2MGHZpWOFz00o99hcfI4,1092
79
+ gitlab/v4/objects/registry_repository_protection_rules.py,sha256=wM34rOsgH-CD0d5FtLI5V4u60_cZUXMCUA4RvMETe7A,1153
79
80
  gitlab/v4/objects/releases.py,sha256=j4_45oOj2yaA2XZ3fwBcKhFJ6li4vQy_zyr013LKfvY,1972
80
81
  gitlab/v4/objects/repositories.py,sha256=RfOzuEvq_dBY1t6KaHG939tfsto9PiyMi-y_ikXSqkU,11221
81
82
  gitlab/v4/objects/resource_groups.py,sha256=fYYnA2YO9CSTzxwImVCVPSiPkIeNpKRrPj7dpzwati4,1427
@@ -95,10 +96,10 @@ gitlab/v4/objects/triggers.py,sha256=UAERq_C-QdPBbBQPHLh5IfhpkdDeIxdnVGPHfu9Qy5Y
95
96
  gitlab/v4/objects/users.py,sha256=_gGrTwcE17jeoXIPgfFSv54jtF1_9C1R0Y0hhssTvXY,21381
96
97
  gitlab/v4/objects/variables.py,sha256=S0Vz32jEpUbo4J2js8gMPPTVpcy1ge5FYVHLiPz9c-A,2627
97
98
  gitlab/v4/objects/wikis.py,sha256=JtI1cQqZV1_PRfKVlQRMh4LZjdxEfi9T2VuFYv6PrV8,1775
98
- python_gitlab-5.2.0.dist-info/AUTHORS,sha256=Z0P61GJSVnp7iFbRcMezhx3f4zMyPkVmG--TWaRo768,526
99
- python_gitlab-5.2.0.dist-info/COPYING,sha256=2n6rt7r999OuXp8iOqW9we7ORaxWncIbOwN1ILRGR2g,7651
100
- python_gitlab-5.2.0.dist-info/METADATA,sha256=BSlE5Ha8zS9EbhGf_euK5Rp9DEtwUCNIMSWjBcEOLb0,8478
101
- python_gitlab-5.2.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
102
- python_gitlab-5.2.0.dist-info/entry_points.txt,sha256=nhpKLLP_uQPFByn8UtE9zsvQQwa402t52o_Cw9IFXMo,43
103
- python_gitlab-5.2.0.dist-info/top_level.txt,sha256=MvIaP8p_Oaf4gO_hXmHkX-5y2deHLp1pe6tJR3ukQ6o,7
104
- python_gitlab-5.2.0.dist-info/RECORD,,
99
+ python_gitlab-5.3.0.dist-info/AUTHORS,sha256=Z0P61GJSVnp7iFbRcMezhx3f4zMyPkVmG--TWaRo768,526
100
+ python_gitlab-5.3.0.dist-info/COPYING,sha256=2n6rt7r999OuXp8iOqW9we7ORaxWncIbOwN1ILRGR2g,7651
101
+ python_gitlab-5.3.0.dist-info/METADATA,sha256=BgQ3nNUcVKVi0Pgef8ExSANM5RgQJ3zYofF1NP1iKy0,8478
102
+ python_gitlab-5.3.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
103
+ python_gitlab-5.3.0.dist-info/entry_points.txt,sha256=nhpKLLP_uQPFByn8UtE9zsvQQwa402t52o_Cw9IFXMo,43
104
+ python_gitlab-5.3.0.dist-info/top_level.txt,sha256=MvIaP8p_Oaf4gO_hXmHkX-5y2deHLp1pe6tJR3ukQ6o,7
105
+ python_gitlab-5.3.0.dist-info/RECORD,,