python-gitlab 4.8.0__py3-none-any.whl → 4.9.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 +1 -1
- gitlab/v4/objects/snippets.py +53 -3
- {python_gitlab-4.8.0.dist-info → python_gitlab-4.9.0.dist-info}/METADATA +1 -1
- {python_gitlab-4.8.0.dist-info → python_gitlab-4.9.0.dist-info}/RECORD +9 -9
- {python_gitlab-4.8.0.dist-info → python_gitlab-4.9.0.dist-info}/WHEEL +1 -1
- {python_gitlab-4.8.0.dist-info → python_gitlab-4.9.0.dist-info}/AUTHORS +0 -0
- {python_gitlab-4.8.0.dist-info → python_gitlab-4.9.0.dist-info}/COPYING +0 -0
- {python_gitlab-4.8.0.dist-info → python_gitlab-4.9.0.dist-info}/entry_points.txt +0 -0
- {python_gitlab-4.8.0.dist-info → python_gitlab-4.9.0.dist-info}/top_level.txt +0 -0
gitlab/_version.py
CHANGED
gitlab/v4/objects/snippets.py
CHANGED
@@ -90,11 +90,35 @@ class SnippetManager(CRUDMixin, RESTManager):
|
|
90
90
|
)
|
91
91
|
|
92
92
|
@cli.register_custom_action(cls_names="SnippetManager")
|
93
|
-
def
|
94
|
-
"""List all
|
93
|
+
def list_public(self, **kwargs: Any) -> Union[RESTObjectList, List[RESTObject]]:
|
94
|
+
"""List all public snippets.
|
95
|
+
|
96
|
+
Args:
|
97
|
+
get_all: If True, return all the items, without pagination
|
98
|
+
per_page: Number of items to retrieve per request
|
99
|
+
page: ID of the page to return (starts with page 1)
|
100
|
+
iterator: If set to True and no pagination option is
|
101
|
+
defined, return a generator instead of a list
|
102
|
+
**kwargs: Extra options to send to the server (e.g. sudo)
|
103
|
+
|
104
|
+
Raises:
|
105
|
+
GitlabListError: If the list could not be retrieved
|
106
|
+
|
107
|
+
Returns:
|
108
|
+
The list of snippets, or a generator if `iterator` is True
|
109
|
+
"""
|
110
|
+
return self.list(path="/snippets/public", **kwargs)
|
111
|
+
|
112
|
+
@cli.register_custom_action(cls_names="SnippetManager")
|
113
|
+
def list_all(self, **kwargs: Any) -> Union[RESTObjectList, List[RESTObject]]:
|
114
|
+
"""List all snippets.
|
95
115
|
|
96
116
|
Args:
|
97
|
-
|
117
|
+
get_all: If True, return all the items, without pagination
|
118
|
+
per_page: Number of items to retrieve per request
|
119
|
+
page: ID of the page to return (starts with page 1)
|
120
|
+
iterator: If set to True and no pagination option is
|
121
|
+
defined, return a generator instead of a list
|
98
122
|
**kwargs: Extra options to send to the server (e.g. sudo)
|
99
123
|
|
100
124
|
Raises:
|
@@ -103,6 +127,32 @@ class SnippetManager(CRUDMixin, RESTManager):
|
|
103
127
|
Returns:
|
104
128
|
A generator for the snippets list
|
105
129
|
"""
|
130
|
+
return self.list(path="/snippets/all", **kwargs)
|
131
|
+
|
132
|
+
def public(self, **kwargs: Any) -> Union[RESTObjectList, List[RESTObject]]:
|
133
|
+
"""List all public snippets.
|
134
|
+
|
135
|
+
Args:
|
136
|
+
get_all: If True, return all the items, without pagination
|
137
|
+
per_page: Number of items to retrieve per request
|
138
|
+
page: ID of the page to return (starts with page 1)
|
139
|
+
iterator: If set to True and no pagination option is
|
140
|
+
defined, return a generator instead of a list
|
141
|
+
**kwargs: Extra options to send to the server (e.g. sudo)
|
142
|
+
|
143
|
+
Raises:
|
144
|
+
GitlabListError: If the list could not be retrieved
|
145
|
+
|
146
|
+
Returns:
|
147
|
+
The list of snippets, or a generator if `iterator` is True
|
148
|
+
"""
|
149
|
+
utils.warn(
|
150
|
+
message=(
|
151
|
+
"Gitlab.snippets.public() is deprecated and will be removed in a"
|
152
|
+
"future major version. Use Gitlab.snippets.list_public() instead."
|
153
|
+
),
|
154
|
+
category=DeprecationWarning,
|
155
|
+
)
|
106
156
|
return self.list(path="/snippets/public", **kwargs)
|
107
157
|
|
108
158
|
def get(self, id: Union[str, int], lazy: bool = False, **kwargs: Any) -> Snippet:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: python-gitlab
|
3
|
-
Version: 4.
|
3
|
+
Version: 4.9.0
|
4
4
|
Summary: A python wrapper for the GitLab API
|
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=bd8BSLyUUjtHMKtzmf-T5855W6FUHcuhIwx2hNu0w2o,1382
|
2
2
|
gitlab/__main__.py,sha256=HTesNl0UAU6mPb9EXWkTKMy6Q6pAUxGi3iPnDHTE2uE,68
|
3
|
-
gitlab/_version.py,sha256=
|
3
|
+
gitlab/_version.py,sha256=8WblZEmwtyX2c4VXUoXvIs7Z3e6CE5dlH-tV99io0nc,249
|
4
4
|
gitlab/base.py,sha256=5cotawlHD01Vw88aN4o7wNIhDyk_bmcwubX4mbOpnVo,13780
|
5
5
|
gitlab/cli.py,sha256=d3-LtZuA1Fgon5wZWn4c3E70fTIu4mM4Juyhh3F8EBs,12416
|
6
6
|
gitlab/client.py,sha256=fPezDHNi4kJxzGxGeDWOWsKmKy76wVR4-fteCgDrY4I,49296
|
@@ -84,7 +84,7 @@ gitlab/v4/objects/secure_files.py,sha256=KC5jGC79Qd_IeHx1EhjobMZrJPPIA-4jUYZny_o
|
|
84
84
|
gitlab/v4/objects/service_accounts.py,sha256=MPy-xk2ObEwohscBK7jcsVUYjhEM48c8_7jK6wB0PYM,517
|
85
85
|
gitlab/v4/objects/settings.py,sha256=LTkdyhhU2MTA15EJw2lZeqDKfK_Bg65CV1CchPljrqY,4295
|
86
86
|
gitlab/v4/objects/sidekiq.py,sha256=kIMgglIBJkbA_io9MXwkCEUs8mZPte6sFQYoWH1TXI4,2996
|
87
|
-
gitlab/v4/objects/snippets.py,sha256=
|
87
|
+
gitlab/v4/objects/snippets.py,sha256=Tq_-9thqcFWN0AqfYOROxwbXfKqlY0zLqbVcp7nww3w,8176
|
88
88
|
gitlab/v4/objects/statistics.py,sha256=NPN8WpCwFJeWeLcn5zahwAgzpJl-Q6bJyoi5ff8XCRQ,2638
|
89
89
|
gitlab/v4/objects/tags.py,sha256=LCvSzI44a1NlrUVi5A_2eOwFSOJjVBSkWe71QdXH_68,1453
|
90
90
|
gitlab/v4/objects/templates.py,sha256=DWbb46-SiusrbW7OuMfBJLrH0rqpRV0G6gzFLbaLpOc,1726
|
@@ -94,10 +94,10 @@ gitlab/v4/objects/triggers.py,sha256=UAERq_C-QdPBbBQPHLh5IfhpkdDeIxdnVGPHfu9Qy5Y
|
|
94
94
|
gitlab/v4/objects/users.py,sha256=_gGrTwcE17jeoXIPgfFSv54jtF1_9C1R0Y0hhssTvXY,21381
|
95
95
|
gitlab/v4/objects/variables.py,sha256=S0Vz32jEpUbo4J2js8gMPPTVpcy1ge5FYVHLiPz9c-A,2627
|
96
96
|
gitlab/v4/objects/wikis.py,sha256=JtI1cQqZV1_PRfKVlQRMh4LZjdxEfi9T2VuFYv6PrV8,1775
|
97
|
-
python_gitlab-4.
|
98
|
-
python_gitlab-4.
|
99
|
-
python_gitlab-4.
|
100
|
-
python_gitlab-4.
|
101
|
-
python_gitlab-4.
|
102
|
-
python_gitlab-4.
|
103
|
-
python_gitlab-4.
|
97
|
+
python_gitlab-4.9.0.dist-info/AUTHORS,sha256=Z0P61GJSVnp7iFbRcMezhx3f4zMyPkVmG--TWaRo768,526
|
98
|
+
python_gitlab-4.9.0.dist-info/COPYING,sha256=2n6rt7r999OuXp8iOqW9we7ORaxWncIbOwN1ILRGR2g,7651
|
99
|
+
python_gitlab-4.9.0.dist-info/METADATA,sha256=IRtLbkQzDvBZ5PfUV0aoYo8Z_AchFifHacjgnmBY7Ik,8228
|
100
|
+
python_gitlab-4.9.0.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
|
101
|
+
python_gitlab-4.9.0.dist-info/entry_points.txt,sha256=nhpKLLP_uQPFByn8UtE9zsvQQwa402t52o_Cw9IFXMo,43
|
102
|
+
python_gitlab-4.9.0.dist-info/top_level.txt,sha256=MvIaP8p_Oaf4gO_hXmHkX-5y2deHLp1pe6tJR3ukQ6o,7
|
103
|
+
python_gitlab-4.9.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|