python-gitlab 5.2.0__py3-none-any.whl → 5.3.1__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 +1 -1
- gitlab/client.py +1 -0
- gitlab/v4/objects/__init__.py +1 -0
- gitlab/v4/objects/projects.py +5 -1
- gitlab/v4/objects/registry_protection_repository_rules.py +35 -0
- {python_gitlab-5.2.0.dist-info → python_gitlab-5.3.1.dist-info}/METADATA +1 -1
- {python_gitlab-5.2.0.dist-info → python_gitlab-5.3.1.dist-info}/RECORD +12 -11
- {python_gitlab-5.2.0.dist-info → python_gitlab-5.3.1.dist-info}/WHEEL +1 -1
- {python_gitlab-5.2.0.dist-info → python_gitlab-5.3.1.dist-info}/AUTHORS +0 -0
- {python_gitlab-5.2.0.dist-info → python_gitlab-5.3.1.dist-info}/COPYING +0 -0
- {python_gitlab-5.2.0.dist-info → python_gitlab-5.3.1.dist-info}/entry_points.txt +0 -0
- {python_gitlab-5.2.0.dist-info → python_gitlab-5.3.1.dist-info}/top_level.txt +0 -0
gitlab/_version.py
CHANGED
gitlab/client.py
CHANGED
gitlab/v4/objects/__init__.py
CHANGED
@@ -55,6 +55,7 @@ from .pipelines import *
|
|
55
55
|
from .project_access_tokens import *
|
56
56
|
from .projects import *
|
57
57
|
from .push_rules import *
|
58
|
+
from .registry_protection_repository_rules import *
|
58
59
|
from .registry_protection_rules import *
|
59
60
|
from .releases import *
|
60
61
|
from .repositories import *
|
gitlab/v4/objects/projects.py
CHANGED
@@ -86,7 +86,10 @@ 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 .
|
89
|
+
from .registry_protection_repository_rules import ( # noqa: F401
|
90
|
+
ProjectRegistryRepositoryProtectionRuleManager,
|
91
|
+
)
|
92
|
+
from .registry_protection_rules import ( # noqa: F401; deprecated
|
90
93
|
ProjectRegistryProtectionRuleManager,
|
91
94
|
)
|
92
95
|
from .releases import ProjectReleaseManager # noqa: F401
|
@@ -239,6 +242,7 @@ class Project(
|
|
239
242
|
protectedtags: ProjectProtectedTagManager
|
240
243
|
pushrules: ProjectPushRulesManager
|
241
244
|
registry_protection_rules: ProjectRegistryProtectionRuleManager
|
245
|
+
registry_protection_repository_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/protection/repository/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.
|
3
|
+
Version: 5.3.1
|
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,9 +1,9 @@
|
|
1
1
|
gitlab/__init__.py,sha256=UP73h54550MIXpRt5OCLJJ-oBHIx1iHSdxmGARfhbO4,1440
|
2
2
|
gitlab/__main__.py,sha256=HTesNl0UAU6mPb9EXWkTKMy6Q6pAUxGi3iPnDHTE2uE,68
|
3
|
-
gitlab/_version.py,sha256=
|
3
|
+
gitlab/_version.py,sha256=WvFp5Sk3ASKgHQPGMRQiQnGPAUHUNRNK99uzJ205LLo,249
|
4
4
|
gitlab/base.py,sha256=-4DNPEWtOB1sGmETTivrJVyl-DWtbmWTUIDTHpenF9Y,13810
|
5
5
|
gitlab/cli.py,sha256=d3-LtZuA1Fgon5wZWn4c3E70fTIu4mM4Juyhh3F8EBs,12416
|
6
|
-
gitlab/client.py,sha256=
|
6
|
+
gitlab/client.py,sha256=oMUYbWmRQg9Vdp-3_YXI8C3ho4eJ4RopEahHqBGUjGo,54846
|
7
7
|
gitlab/config.py,sha256=T1DgUXD0-MN2qNszrv-SO5d4uy0FITnNN0vWJgOt2yo,9088
|
8
8
|
gitlab/const.py,sha256=CD9ahY-Tefhc6OHsmHG0lj5uPdH1DwU1xZmSQfho_ao,5374
|
9
9
|
gitlab/exceptions.py,sha256=VOQftPzEq5mpVj6vke7z6Xe4S7Yf_rDTab0lNHqf3AY,8390
|
@@ -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=
|
20
|
+
gitlab/v4/objects/__init__.py,sha256=jLRGKs89j9JSB-yDU5sOLmPZ2jTIwvDaTycGIhRjWOQ,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,8 +73,9 @@ 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=
|
76
|
+
gitlab/v4/objects/projects.py,sha256=QI0_jOwo2B_7lydiiNUCW86e3KayTLbMgHdBjdvz7sY,45703
|
77
77
|
gitlab/v4/objects/push_rules.py,sha256=0dKMWEzF5h1zATh0_j_SvjQ7HKx9_5M7J9hzDGB66Rc,3041
|
78
|
+
gitlab/v4/objects/registry_protection_repository_rules.py,sha256=iu4ubqfh_sw0BCxRqqvXEUrPXspr8d0z3njQLwTatpo,1153
|
78
79
|
gitlab/v4/objects/registry_protection_rules.py,sha256=bZsUAjoxwQEHOfr4Bxz6FQA2MGHZpWOFz00o99hcfI4,1092
|
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
|
@@ -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.
|
99
|
-
python_gitlab-5.
|
100
|
-
python_gitlab-5.
|
101
|
-
python_gitlab-5.
|
102
|
-
python_gitlab-5.
|
103
|
-
python_gitlab-5.
|
104
|
-
python_gitlab-5.
|
99
|
+
python_gitlab-5.3.1.dist-info/AUTHORS,sha256=Z0P61GJSVnp7iFbRcMezhx3f4zMyPkVmG--TWaRo768,526
|
100
|
+
python_gitlab-5.3.1.dist-info/COPYING,sha256=2n6rt7r999OuXp8iOqW9we7ORaxWncIbOwN1ILRGR2g,7651
|
101
|
+
python_gitlab-5.3.1.dist-info/METADATA,sha256=wxAa_-95qcT5A5UpvnnFTXHoGZO0s3u6dSkxVUAO_wk,8478
|
102
|
+
python_gitlab-5.3.1.dist-info/WHEEL,sha256=A3WOREP4zgxI0fKrHUG8DC8013e3dK3n7a6HDbcEIwE,91
|
103
|
+
python_gitlab-5.3.1.dist-info/entry_points.txt,sha256=nhpKLLP_uQPFByn8UtE9zsvQQwa402t52o_Cw9IFXMo,43
|
104
|
+
python_gitlab-5.3.1.dist-info/top_level.txt,sha256=MvIaP8p_Oaf4gO_hXmHkX-5y2deHLp1pe6tJR3ukQ6o,7
|
105
|
+
python_gitlab-5.3.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|