| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e77554c commit 8753add
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,25 @@ | |||
| 1 | 1 | API reference (``gitlab`` package) | |
| 2 | 2 | ================================== | |
| 3 | 3 | ||
| 4 | + Module contents | ||
| 5 | + --------------- | ||
| 6 | + | ||
| 7 | + .. automodule:: gitlab | ||
| 8 | + :members: | ||
| 9 | + :undoc-members: | ||
| 10 | + :show-inheritance: | ||
| 11 | + | ||
| 12 | + .. autoclass:: gitlab.Gitlab | ||
| 13 | + :members: | ||
| 14 | + :undoc-members: | ||
| 15 | + :show-inheritance: | ||
| 16 | + | ||
| 17 | + .. autoclass:: gitlab.GitlabList | ||
| 18 | + :members: | ||
| 19 | + :undoc-members: | ||
| 20 | + :show-inheritance: | ||
| 21 | + | ||
| 22 | + | ||
| 4 | 23 | Subpackages | |
| 5 | 24 | ----------- | |
| 6 | 25 | ||
@@ -66,12 +85,3 @@ gitlab.utils module | |||
| 66 | 85 | :members: | |
| 67 | 86 | :undoc-members: | |
| 68 | 87 | :show-inheritance: | |
| 69 | - | ||
| 70 | - | ||
| 71 | - Module contents | ||
| 72 | - --------------- | ||
| 73 | - | ||
| 74 | - .. automodule:: gitlab | ||
| 75 | - :members: | ||
| 76 | - :undoc-members: | ||
| 77 | - :show-inheritance: | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -110,38 +110,71 @@ def __init__( | |||
| 110 | 110 | self._objects = objects | |
| 111 | 111 | ||
| 112 | 112 | self.broadcastmessages = objects.BroadcastMessageManager(self) | |
| 113 | + """See :class:`~gitlab.v4.objects.BroadcastMessageManager`""" | ||
| 113 | 114 | self.deploykeys = objects.DeployKeyManager(self) | |
| 115 | + """See :class:`~gitlab.v4.objects.DeployKeyManager`""" | ||
| 114 | 116 | self.deploytokens = objects.DeployTokenManager(self) | |
| 117 | + """See :class:`~gitlab.v4.objects.DeployTokenManager`""" | ||
| 115 | 118 | self.geonodes = objects.GeoNodeManager(self) | |
| 119 | + """See :class:`~gitlab.v4.objects.GeoNodeManager`""" | ||
| 116 | 120 | self.gitlabciymls = objects.GitlabciymlManager(self) | |
| 121 | + """See :class:`~gitlab.v4.objects.GitlabciymlManager`""" | ||
| 117 | 122 | self.gitignores = objects.GitignoreManager(self) | |
| 123 | + """See :class:`~gitlab.v4.objects.GitignoreManager`""" | ||
| 118 | 124 | self.groups = objects.GroupManager(self) | |
| 125 | + """See :class:`~gitlab.v4.objects.GroupManager`""" | ||
| 119 | 126 | self.hooks = objects.HookManager(self) | |
| 127 | + """See :class:`~gitlab.v4.objects.HookManager`""" | ||
| 120 | 128 | self.issues = objects.IssueManager(self) | |
| 129 | + """See :class:`~gitlab.v4.objects.IssueManager`""" | ||
| 121 | 130 | self.issues_statistics = objects.IssuesStatisticsManager(self) | |
| 131 | + """See :class:`~gitlab.v4.objects.IssuesStatisticsManager`""" | ||
| 122 | 132 | self.keys = objects.KeyManager(self) | |
| 133 | + """See :class:`~gitlab.v4.objects.KeyManager`""" | ||
| 123 | 134 | self.ldapgroups = objects.LDAPGroupManager(self) | |
| 135 | + """See :class:`~gitlab.v4.objects.LDAPGroupManager`""" | ||
| 124 | 136 | self.licenses = objects.LicenseManager(self) | |
| 137 | + """See :class:`~gitlab.v4.objects.LicenseManager`""" | ||
| 125 | 138 | self.namespaces = objects.NamespaceManager(self) | |
| 139 | + """See :class:`~gitlab.v4.objects.NamespaceManager`""" | ||
| 126 | 140 | self.mergerequests = objects.MergeRequestManager(self) | |
| 141 | + """See :class:`~gitlab.v4.objects.MergeRequestManager`""" | ||
| 127 | 142 | self.notificationsettings = objects.NotificationSettingsManager(self) | |
| 143 | + """See :class:`~gitlab.v4.objects.NotificationSettingsManager`""" | ||
| 128 | 144 | self.projects = objects.ProjectManager(self) | |
| 145 | + """See :class:`~gitlab.v4.objects.ProjectManager`""" | ||
| 129 | 146 | self.runners = objects.RunnerManager(self) | |
| 147 | + """See :class:`~gitlab.v4.objects.RunnerManager`""" | ||
| 130 | 148 | self.settings = objects.ApplicationSettingsManager(self) | |
| 149 | + """See :class:`~gitlab.v4.objects.ApplicationSettingsManager`""" | ||
| 131 | 150 | self.appearance = objects.ApplicationAppearanceManager(self) | |
| 151 | + """See :class:`~gitlab.v4.objects.ApplicationAppearanceManager`""" | ||
| 132 | 152 | self.sidekiq = objects.SidekiqManager(self) | |
| 153 | + """See :class:`~gitlab.v4.objects.SidekiqManager`""" | ||
| 133 | 154 | self.snippets = objects.SnippetManager(self) | |
| 155 | + """See :class:`~gitlab.v4.objects.SnippetManager`""" | ||
| 134 | 156 | self.users = objects.UserManager(self) | |
| 157 | + """See :class:`~gitlab.v4.objects.UserManager`""" | ||
| 135 | 158 | self.todos = objects.TodoManager(self) | |
| 159 | + """See :class:`~gitlab.v4.objects.TodoManager`""" | ||
| 136 | 160 | self.dockerfiles = objects.DockerfileManager(self) | |
| 161 | + """See :class:`~gitlab.v4.objects.DockerfileManager`""" | ||
| 137 | 162 | self.events = objects.EventManager(self) | |
| 163 | + """See :class:`~gitlab.v4.objects.EventManager`""" | ||
| 138 | 164 | self.audit_events = objects.AuditEventManager(self) | |
| 165 | + """See :class:`~gitlab.v4.objects.AuditEventManager`""" | ||
| 139 | 166 | self.features = objects.FeatureManager(self) | |
| 167 | + """See :class:`~gitlab.v4.objects.FeatureManager`""" | ||
| 140 | 168 | self.pagesdomains = objects.PagesDomainManager(self) | |
| 169 | + """See :class:`~gitlab.v4.objects.PagesDomainManager`""" | ||
| 141 | 170 | self.user_activities = objects.UserActivitiesManager(self) | |
| 171 | + """See :class:`~gitlab.v4.objects.UserActivitiesManager`""" | ||
| 142 | 172 | self.applications = objects.ApplicationManager(self) | |
| 173 | + """See :class:`~gitlab.v4.objects.ApplicationManager`""" | ||
| 143 | 174 | self.variables = objects.VariableManager(self) | |
| 175 | + """See :class:`~gitlab.v4.objects.VariableManager`""" | ||
| 144 | 176 | self.personal_access_tokens = objects.PersonalAccessTokenManager(self) | |
| 177 | + """See :class:`~gitlab.v4.objects.PersonalAccessTokenManager`""" | ||
| 145 | 178 | ||
| 146 | 179 | def __enter__(self) -> "Gitlab": | |
| 147 | 180 | return self | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -84,3 +84,5 @@ | |||
| 84 | 84 | ACCESS_DEVELOPER = 30 | |
| 85 | 85 | ACCESS_MASTER = 40 | |
| 86 | 86 | ACCESS_OWNER = 50 | |
| 87 | + | ||
| 88 | + __all__ = [name for name in dir() if not name.startswith("_")] | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -838,12 +838,13 @@ def import_bitbucket_server( | |||
| 838 | 838 | ||
| 839 | 839 | This method will return when an import operation has been safely queued, | |
| 840 | 840 | or an error has occurred. After triggering an import, check the | |
| 841 | - `import_status` of the newly created project to detect when the import | ||
| 841 | + ``import_status`` of the newly created project to detect when the import | ||
| 842 | 842 | operation has completed. | |
| 843 | 843 | ||
| 844 | - NOTE: this request may take longer than most other API requests. | ||
| 845 | - So this method will specify a 60 second default timeout if none is specified. | ||
| 846 | - A timeout can be specified via kwargs to override this functionality. | ||
| 844 | + .. note:: | ||
| 845 | + This request may take longer than most other API requests. | ||
| 846 | + So this method will specify a 60 second default timeout if none is specified. | ||
| 847 | + A timeout can be specified via kwargs to override this functionality. | ||
| 847 | 848 | ||
| 848 | 849 | Args: | |
| 849 | 850 | bitbucket_server_url (str): Bitbucket Server URL | |
@@ -865,7 +866,9 @@ def import_bitbucket_server( | |||
| 865 | 866 | dict: A representation of the import status. | |
| 866 | 867 | ||
| 867 | 868 | Example: | |
| 868 | - ``` | ||
| 869 | + | ||
| 870 | + .. code-block:: python | ||
| 871 | + | ||
| 869 | 872 | gl = gitlab.Gitlab_from_config() | |
| 870 | 873 | print("Triggering import") | |
| 871 | 874 | result = gl.projects.import_bitbucket_server( | |
@@ -883,7 +886,7 @@ def import_bitbucket_server( | |||
| 883 | 886 | time.sleep(1.0) | |
| 884 | 887 | project = gl.projects.get(project.id) | |
| 885 | 888 | print("BitBucket import complete") | |
| 886 | - ``` | ||
| 889 | + | ||
| 887 | 890 | """ | |
| 888 | 891 | data = { | |
| 889 | 892 | "bitbucket_server_url": bitbucket_server_url, | |
@@ -923,12 +926,13 @@ def import_github( | |||
| 923 | 926 | ||
| 924 | 927 | This method will return when an import operation has been safely queued, | |
| 925 | 928 | or an error has occurred. After triggering an import, check the | |
| 926 | - `import_status` of the newly created project to detect when the import | ||
| 929 | + ``import_status`` of the newly created project to detect when the import | ||
| 927 | 930 | operation has completed. | |
| 928 | 931 | ||
| 929 | - NOTE: this request may take longer than most other API requests. | ||
| 930 | - So this method will specify a 60 second default timeout if none is specified. | ||
| 931 | - A timeout can be specified via kwargs to override this functionality. | ||
| 932 | + .. note:: | ||
| 933 | + This request may take longer than most other API requests. | ||
| 934 | + So this method will specify a 60 second default timeout if none is specified. | ||
| 935 | + A timeout can be specified via kwargs to override this functionality. | ||
| 932 | 936 | ||
| 933 | 937 | Args: | |
| 934 | 938 | personal_access_token (str): GitHub personal access token | |
@@ -945,7 +949,9 @@ def import_github( | |||
| 945 | 949 | dict: A representation of the import status. | |
| 946 | 950 | ||
| 947 | 951 | Example: | |
| 948 | - ``` | ||
| 952 | + | ||
| 953 | + .. code-block:: python | ||
| 954 | + | ||
| 949 | 955 | gl = gitlab.Gitlab_from_config() | |
| 950 | 956 | print("Triggering import") | |
| 951 | 957 | result = gl.projects.import_github(ACCESS_TOKEN, | |
@@ -957,7 +963,7 @@ def import_github( | |||
| 957 | 963 | time.sleep(1.0) | |
| 958 | 964 | project = gl.projects.get(project.id) | |
| 959 | 965 | print("Github import complete") | |
| 960 | - ``` | ||
| 966 | + | ||
| 961 | 967 | """ | |
| 962 | 968 | data = { | |
| 963 | 969 | "personal_access_token": personal_access_token, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments