| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 492a751 commit 2f274bc
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,7 @@ | |||
| 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 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments