python-gitlab の API リファレンス
python-gitlab (python-gitlab/python-gitlab) の公開 API 76 件 —— クラス 12、関数 2、メソッド 62。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: python-gitlab/python-gitlab
| 種別 | 件数 |
|---|---|
| クラス | 12 |
| 関数 | 2 |
| メソッド | 62 |
API 一覧
class
gitlab.base.RESTManagerBase class for CRUD operations on objects.
class
gitlab.base.RESTObjectRepresents an object built from server data.
method
gitlab.base.RESTObject.get_id() -> int | str | NoneReturns the id of the resource.
class
gitlab.base.RESTObjectListGenerator object representing a list of RESTObject's.
method
gitlab.base.RESTObjectList.current_page() -> intThe current page number.
method
gitlab.base.RESTObjectList.next_page() -> int | NoneThe next page number.
method
gitlab.base.RESTObjectList.per_page() -> int | NoneThe number of items per page.
method
gitlab.base.RESTObjectList.prev_page() -> int | NoneThe previous page number.
method
gitlab.base.RESTObjectList.total() -> int | NoneThe total number of items.
method
gitlab.base.RESTObjectList.total_pages() -> int | NoneThe total number of pages.
class
gitlab.client.GitlabRepresents a GitLab server connection.
method
gitlab.client.Gitlab.api_url() -> strThe computed API base URL.
method
gitlab.client.Gitlab.api_version() -> strThe API version used (4 only).
method
gitlab.client.Gitlab.auth() -> NonePerforms an authentication using private token.
method
gitlab.client.Gitlab.from_config(gitlab_id:str | None=None, config_files:list[str] | None=None, **kwargs:Any) -> GitlabCreate a Gitlab connection from configuration files.
method
gitlab.client.Gitlab.get_license(**kwargs:Any) -> dict[str, str | dict[str, str]]Retrieve information about the current license.
method
gitlab.client.Gitlab.http_delete(path:str, **kwargs:Any) -> requests.ResponseMake a DELETE request to the Gitlab server.
method
gitlab.client.Gitlab.http_get(path:str, query_data:dict[str, Any] | None=None, streamed:bool=False, raw:bool=False, **kwargs:Any) -> dict[str, Any] | requests.ResponseMake a GET request to the Gitlab server.
method
gitlab.client.Gitlab.http_head(path:str, query_data:dict[str, Any] | None=None, **kwargs:Any) -> requests.structures.CaseInsensitiveDict[Any]Make a HEAD request to the Gitlab server.
method
gitlab.client.Gitlab.http_post(path:str, query_data:dict[str, Any] | None=None, post_data:dict[str, Any] | None=None, raw:bool=False, files:dict[str, Any] | None=None, **kwargs:Any) -> dict[str, Any] | requests.ResponseMake a POST request to the Gitlab server.
method
gitlab.client.Gitlab.markdown(text:str, gfm:bool=False, project:str | None=None, **kwargs:Any) -> strRender an arbitrary Markdown document.
method
gitlab.client.Gitlab.set_license(license:str, **kwargs:Any) -> dict[str, Any]Add a new license.
method
gitlab.client.Gitlab.url() -> strThe user-provided server URL.
method
gitlab.client.Gitlab.version() -> tuple[str, str]Returns the version and revision of the gitlab server.
class
gitlab.client.GitlabListGenerator representing a list of remote objects.
method
gitlab.client.GitlabList.current_page() -> intThe current page number.
method
gitlab.client.GitlabList.next_page() -> int | NoneThe next page number.
method
gitlab.client.GitlabList.per_page() -> int | NoneThe number of items per page.
method
gitlab.client.GitlabList.prev_page() -> int | NoneThe previous page number.
method
gitlab.client.GitlabList.total() -> int | NoneThe total number of items.
method
gitlab.client.GitlabList.total_pages() -> int | NoneThe total number of pages.
class
gitlab.const.GitlabEnumAn enum mixed in with str to make it JSON-serializable.
func
gitlab.exceptions.on_http_error(error:type[Exception]) -> Callable[[__F], __F]Manage GitlabHttpError exceptions.
class
gitlab.mixins.ObjectDeleteMixinMixin for RESTObject's that can be deleted.
method
gitlab.mixins.ObjectDeleteMixin.delete(**kwargs:Any) -> NoneDelete the object from the server.
class
gitlab.mixins.SaveMixinMixin for RESTObject's that can be updated.
method
gitlab.mixins.SaveMixin.save(**kwargs:Any) -> dict[str, Any] | NoneSave the changes made to the object to the server.
method
gitlab.mixins.SetMixin.set(key:str, value:str, **kwargs:Any) -> base.TObjClsCreate or update the object.
class
gitlab.utils.MaskingFormatterA logging formatter that can mask credentials
func
gitlab.utils.get_base_url(url:str | None=None) -> strReturn the base URL with the trailing slash stripped.
class
gitlab.v4.objects.artifacts.ProjectArtifactDummy object to manage custom actions on artifacts
method
gitlab.v4.objects.groups.Group.ldap_sync(**kwargs:Any) -> NoneSync LDAP groups.
method
gitlab.v4.objects.groups.Group.restore(**kwargs:Any) -> NoneRestore a group marked for deletion..
method
gitlab.v4.objects.groups.Group.share(group_id:int, group_access:int, expires_at:str | None=None, **kwargs:Any) -> NoneShare the group with a group.
method
gitlab.v4.objects.groups.Group.transfer_project(project_id:int, **kwargs:Any) -> NoneTransfer a project to this group.
method
gitlab.v4.objects.groups.Group.unshare(group_id:int, **kwargs:Any) -> NoneDelete a shared group link within a group.
method
gitlab.v4.objects.groups.GroupManager.import_group(file:BinaryIO, path:str, name:str, parent_id:int | str | None=None, **kwargs:Any) -> dict[str, Any] | requests.ResponseImport a group from an archive file.
method
gitlab.v4.objects.projects.Project.archive(**kwargs:Any) -> NoneArchive a project.
method
gitlab.v4.objects.projects.Project.delete_fork_relation(**kwargs:Any) -> NoneDelete a forked relation between existing projects.
method
gitlab.v4.objects.projects.Project.housekeeping(**kwargs:Any) -> NoneStart the housekeeping task.
method
gitlab.v4.objects.projects.Project.mirror_pull(**kwargs:Any) -> NoneStart the pull mirroring process for the project.
method
gitlab.v4.objects.projects.Project.mirror_pull_details(**kwargs:Any) -> dict[str, Any]Get a project's pull mirror details.
method
gitlab.v4.objects.projects.Project.restore(**kwargs:Any) -> NoneRestore a project marked for deletion.
method
gitlab.v4.objects.projects.Project.share(group_id:int, group_access:int, expires_at:str | None=None, **kwargs:Any) -> NoneShare the project with a group.
method
gitlab.v4.objects.projects.Project.star(**kwargs:Any) -> NoneStar a project.
method
gitlab.v4.objects.projects.Project.trigger_pipeline(ref:str, token:str, variables:dict[str, Any] | None=None, inputs:dict[str, Any] | None=None, **kwargs:Any) -> ProjectPipelineTrigger a CI build.
method
gitlab.v4.objects.projects.Project.unarchive(**kwargs:Any) -> NoneUnarchive a project.
method
gitlab.v4.objects.projects.Project.unshare(group_id:int, **kwargs:Any) -> NoneDelete a shared project link within a group.
method
gitlab.v4.objects.projects.Project.unstar(**kwargs:Any) -> NoneUnstar a project.
class
gitlab.v4.objects.sidekiq.SidekiqManagerManager for the Sidekiq methods.
method
gitlab.v4.objects.sidekiq.SidekiqManager.compound_metrics(**kwargs:Any) -> dict[str, Any] | requests.ResponseReturn all available metrics and statistics.
method
gitlab.v4.objects.sidekiq.SidekiqManager.job_stats(**kwargs:Any) -> dict[str, Any] | requests.ResponseReturn statistics about the jobs performed.
method
gitlab.v4.objects.sidekiq.SidekiqManager.process_metrics(**kwargs:Any) -> dict[str, Any] | requests.ResponseReturn the registered sidekiq workers.
method
gitlab.v4.objects.sidekiq.SidekiqManager.queue_metrics(**kwargs:Any) -> dict[str, Any] | requests.ResponseReturn the registered queues information.
method
gitlab.v4.objects.todos.Todo.mark_as_done(**kwargs:Any) -> Dict[str, Any]Mark the todo as done.
method
gitlab.v4.objects.users.User.activate(**kwargs:Any) -> dict[str, Any] | requests.ResponseActivate the user.
method
gitlab.v4.objects.users.User.approve(**kwargs:Any) -> dict[str, Any] | requests.ResponseApprove a user creation request.
method
gitlab.v4.objects.users.User.ban(**kwargs:Any) -> dict[str, Any] | requests.ResponseBan the user.
method
gitlab.v4.objects.users.User.block(**kwargs:Any) -> bool | NoneBlock the user.
method
gitlab.v4.objects.users.User.deactivate(**kwargs:Any) -> dict[str, Any] | requests.ResponseDeactivate the user.
method
gitlab.v4.objects.users.User.follow(**kwargs:Any) -> dict[str, Any] | requests.ResponseFollow the user.
method
gitlab.v4.objects.users.User.reject(**kwargs:Any) -> dict[str, Any] | requests.ResponseReject a user creation request.
method
gitlab.v4.objects.users.User.unban(**kwargs:Any) -> dict[str, Any] | requests.ResponseUnban the user.
method
gitlab.v4.objects.users.User.unblock(**kwargs:Any) -> bool | NoneUnblock the user.
method
gitlab.v4.objects.users.User.unfollow(**kwargs:Any) -> dict[str, Any] | requests.ResponseUnfollow the user.
class
gitlab.v4.objects.users.UserIdentityProviderManagerManager for user identities.
この情報について
掲載しているシグネチャは python-gitlab/python-gitlab の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。