@@ -45,7 +45,7 @@ python-gitlab:
45
45
' https' : os.environ.get(' https_proxy' ),
46
46
' http' : os.environ.get(' http_proxy' ),
47
47
}
48
- gl = gitlab.gitlab (url, token, api_version = 4 , session = session)
48
+ gl = gitlab.Gitlab (url, token, api_version = 4 , session = session)
49
49
50
50
Reference:
51
51
https://requests.readthedocs.io/en/latest/user/advanced/#proxies
@@ -74,7 +74,7 @@ The following sample illustrates how to use a client-side certificate:
74
74
75
75
session = requests.Session()
76
76
session.cert = (' /path/to/client.cert' , ' /path/to/client.key' )
77
- gl = gitlab.gitlab (url, token, api_version = 4 , session = session)
77
+ gl = gitlab.Gitlab (url, token, api_version = 4 , session = session)
78
78
79
79
Reference:
80
80
https://requests.readthedocs.io/en/latest/user/advanced/#client-side-certificates
@@ -96,7 +96,7 @@ supplying the ``obey_rate_limit`` argument.
96
96
import gitlab
97
97
import requests
98
98
99
- gl = gitlab.gitlab (url, token, api_version = 4 )
99
+ gl = gitlab.Gitlab (url, token, api_version = 4 )
100
100
gl.projects.list(get_all = True , obey_rate_limit = False )
101
101
102
102
If you do not disable the rate-limiting feature, you can supply a custom value
@@ -109,7 +109,7 @@ throttled, you can set this parameter to -1. This parameter is ignored if
109
109
import gitlab
110
110
import requests
111
111
112
- gl = gitlab.gitlab (url, token, api_version = 4 )
112
+ gl = gitlab.Gitlab (url, token, api_version = 4 )
113
113
gl.projects.list(get_all = True , max_retries = 12 )
114
114
115
115
.. warning ::
@@ -139,7 +139,7 @@ exception is raised for these errors.
139
139
import gitlab
140
140
import requests
141
141
142
- gl = gitlab.gitlab (url, token, api_version = 4 )
142
+ gl = gitlab.Gitlab (url, token, api_version = 4 )
143
143
gl.projects.list(get_all = True , retry_transient_errors = True )
144
144
145
145
The default ``retry_transient_errors `` can also be set on the ``Gitlab `` object
@@ -149,7 +149,7 @@ and overridden by individual API calls.
149
149
150
150
import gitlab
151
151
import requests
152
- gl = gitlab.gitlab (url, token, api_version = 4 , retry_transient_errors = True )
152
+ gl = gitlab.Gitlab (url, token, api_version = 4 , retry_transient_errors = True )
153
153
gl.projects.list(get_all = True ) # retries due to default value
154
154
gl.projects.list(get_all = True , retry_transient_errors = False ) # does not retry
155
155
@@ -166,7 +166,7 @@ parameter to that API invocation:
166
166
167
167
import gitlab
168
168
169
- gl = gitlab.gitlab (url, token, api_version = 4 )
169
+ gl = gitlab.Gitlab (url, token, api_version = 4 )
170
170
gl.projects.import_github(ACCESS_TOKEN , 123456 , " root" , timeout = 120.0 )
171
171
172
172
Typing
@@ -183,7 +183,7 @@ on your own, such as for nested API responses and ``Union`` return types. For ex
183
183
184
184
import gitlab
185
185
186
- gl = gitlab.gitlab (url, token, api_version = 4 )
186
+ gl = gitlab.Gitlab (url, token, api_version = 4 )
187
187
license = gl.get_license()
188
188
189
189
if TYPE_CHECKING :
0 commit comments