File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 2
2
Getting started with the API
3
3
############################
4
4
5
- The ``gitlab `` package provides 3 basic types:
5
+ The ``gitlab `` package provides 3 base types:
6
6
7
7
* ``gitlab.Gitlab `` is the primary class, handling the HTTP requests. It holds
8
8
the GitLab URL and authentication information.
@@ -68,6 +68,17 @@ Examples:
68
68
user = gl.users.create(user_data)
69
69
print (user)
70
70
71
+ The attributes of objects are defined upon object creation, and depend on the
72
+ GitLab API itself. To list the available information associated with an object
73
+ use the python introspection tools:
74
+
75
+ .. code-block :: python
76
+
77
+ project = gl.projects.get(1 )
78
+ print (vars (project))
79
+ # or
80
+ print (project.__dict__ )
81
+
71
82
Some ``gitlab.GitlabObject `` classes also provide managers to access related
72
83
GitLab resources:
73
84
You can’t perform that action at this time.
0 commit comments