Table of Contents
gitlab
package)gitlab
command)Bases:object
Special type indicating an unconstrained type.
Any is compatible with every type.
Any assumed to have all methods.
All values assumed to be instances of Any.
Note that all the above statements are true from the point of view ofstatic type checkers. At runtime, Any should not be used with instancechecks.
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:SaveMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetWithoutIdMixin
[ApplicationAppearance
],UpdateMixin
[ApplicationAppearance
]
Object Creation
Object update
Optional attributes for object update:
title
description
logo
header_logo
favicon
new_project_guidelines
header_message
footer_message
message_background_color
message_font_color
email_header_and_footer_enabled
gl (Gitlab)
parent (RESTObject |None)
Update an object on the server.
The new object data (not a RESTObject)
GitlabAuthenticationError – If authentication is not correct
GitlabUpdateError – If the server cannot perform the request
dict[str,Any]
Bases:ListMixin
[Application
],CreateMixin
[Application
],DeleteMixin
[Application
]
Object Creation
Required attributes for object create:
name
redirect_uri
scopes
Optional attributes for object create:
confidential
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetWithoutIdMixin
[ApplicationSettings
],UpdateMixin
[ApplicationSettings
]
Object Creation
Object update
Optional attributes for object update:
id
default_projects_limit
signup_enabled
silent_mode_enabled
password_authentication_enabled_for_web
gravatar_enabled
sign_in_text
created_at
updated_at
home_page_url
default_branch_protection
restricted_visibility_levels
max_attachment_size
session_expire_delay
default_project_visibility
default_snippet_visibility
default_group_visibility
outbound_local_requests_whitelist
disabled_oauth_sign_in_sources
domain_whitelist
domain_blacklist_enabled
domain_blacklist
domain_allowlist
domain_denylist_enabled
domain_denylist
external_authorization_service_enabled
external_authorization_service_url
external_authorization_service_default_label
external_authorization_service_timeout
import_sources
user_oauth_applications
after_sign_out_path
container_registry_token_expire_delay
repository_storages
plantuml_enabled
plantuml_url
terminal_max_session_time
polling_interval_multiplier
rsa_key_restriction
dsa_key_restriction
ecdsa_key_restriction
ed25519_key_restriction
first_day_of_week
enforce_terms
terms
performance_bar_allowed_group_id
instance_statistics_visibility_private
user_show_add_ssh_key_message
file_template_project_id
local_markdown_version
asset_proxy_enabled
asset_proxy_url
asset_proxy_whitelist
asset_proxy_allowlist
geo_node_allowed_ips
allow_local_requests_from_hooks_and_services
allow_local_requests_from_web_hooks_and_services
allow_local_requests_from_system_hooks
gl (Gitlab)
parent (RESTObject |None)
Update an object on the server.
The new object data (not a RESTObject)
GitlabAuthenticationError – If authentication is not correct
GitlabUpdateError – If the server cannot perform the request
dict[str,Any]
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetWithoutIdMixin
[ApplicationStatistics
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[AuditEvent
]
Object listing filters
created_after
created_before
entity_type
entity_id
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:CRUDMixin
[BroadcastMessage
]
Object Creation
Required attributes for object create:
message
Optional attributes for object create:
starts_at
ends_at
color
font
target_access_levels
Object update
Optional attributes for object update:
message
starts_at
ends_at
color
font
target_access_levels
gl (Gitlab)
parent (RESTObject |None)
Bases:RefreshMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[BulkImportAllEntity
]
Object listing filters
sort
status
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RefreshMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[BulkImportEntity
]
Object listing filters
sort
status
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:CreateMixin
[BulkImport
],RetrieveMixin
[BulkImport
]
Object listing filters
sort
status
Object Creation
Required attributes for object create:
configuration
entities
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:CreateMixin
[CiLint
]
Object Creation
Required attributes for object create:
content
Optional attributes for object create:
include_merged_yaml
include_jobs
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[CurrentUserEmail
],CreateMixin
[CurrentUserEmail
],DeleteMixin
[CurrentUserEmail
]
Object Creation
Required attributes for object create:
email
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[CurrentUserGPGKey
],CreateMixin
[CurrentUserGPGKey
],DeleteMixin
[CurrentUserGPGKey
]
Object Creation
Required attributes for object create:
key
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[CurrentUserKey
],CreateMixin
[CurrentUserKey
],DeleteMixin
[CurrentUserKey
]
Object Creation
Required attributes for object create:
title
key
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:GetWithoutIdMixin
[CurrentUser
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:CreateMixin
[CurrentUserRunner
]
Object Creation
Required attributes for object create:
runner_type
Optional attributes for object create:
group_id
project_id
description
paused
locked
run_untagged
tag_list
access_level
maximum_timeout
maintenance_note
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetWithoutIdMixin
[CurrentUserStatus
],UpdateMixin
[CurrentUserStatus
]
Object Creation
Object update
Optional attributes for object update:
emoji
message
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:CreateMixin
[DeployKey
],ListMixin
[DeployKey
]
Object Creation
Required attributes for object create:
title
key
Optional attributes for object create:
expires_at
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[DeployToken
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[Dockerfile
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Object listing filters
action
target_type
before
after
sort
scope
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[Feature
],DeleteMixin
[Feature
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Create or update the object.
name (str) – The value to set for the object
value (bool |int) – The value to set for the object
feature_group (str |None) – A feature group name
user (str |None) – A GitLab username
group (str |None) – A GitLab group
project (str |None) – A GitLab project in form group/project
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabSetError – If an error occurred
The created/updated attribute
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RESTManager
[GenericPackage
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Download a generic package.
package_name (str) – The package name.
package_version (str) – The package version.
file_name (str) – The name of the file in the registry
streamed (bool) – If True the data will be processed by chunks ofchunk_size and each chunk is passed toaction fortreatment
iterator (bool) – If True directly return the underlying responseiterator
action (Callable[[bytes],Any]|None) – Callable responsible of dealing with chunk ofdata
chunk_size (int) – Size of each chunk
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabGetError – If the server failed to perform the request
The package content if streamed is False, None otherwise
bytes |Iterator[Any] | None
Upload a file as a generic package.
package_name (str) – The package name. Must follow generic packagename regex rules
package_version (str) – The package version. Must follow semanticversion regex rules
file_name (str) – The name of the file as uploaded in the registry
path (str |Path |None) – The path to a local file to upload
select (str |None) – GitLab API accepts a value of ‘package_file’
data (bytes |BinaryIO |None)
kwargs (Any)
GitlabConnectionError – If the server cannot be reached
GitlabUploadError – If the file upload fails
GitlabUploadError – Ifpath
cannot be read
GitlabUploadError – If bothpath
anddata
are passed
An object storing the metadata of the uploaded package.
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Repair the OAuth authentication of the geo node.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabRepairError – If the server failed to perform the request
None
Bases:RetrieveMixin
[GeoNode
],UpdateMixin
[GeoNode
],DeleteMixin
[GeoNode
]
Object Creation
Object update
Optional attributes for object update:
enabled
url
files_max_capacity
repos_max_capacity
gl (Gitlab)
parent (RESTObject |None)
Get the list of failures on the current geo node.
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[Gitignore
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[Gitlabciyml
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Sync LDAP groups.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabCreateError – If the server cannot perform the request
None
Restore a group marked for deletion..
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabRestoreError – If the server failed to perform the request
None
Search the group resources matching the provided string.
scope (str) – Scope of the search
search (str) – Search string
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabSearchError – If the server failed to perform the request
A list of dicts describing the resources found.
GitlabList | list[dict[str,Any]]
Share the group with a group.
group_id (int) – ID of the group.
group_access (int) – Access level for the group.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
expires_at (str |None)
**kwargs
GitlabAuthenticationError – If authentication is not correct
GitlabCreateError – If the server failed to perform the request
Group
None
Transfer the group to a new parent group or make it a top-level group.
Requires GitLab ≥14.6.
group_id (int |None) – ID of the new parent group. When not specified,the group to transfer is instead turned into a top-level group.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabGroupTransferError – If the group could not be transferred
None
Transfer a project to this group.
to_project_id – ID of the project to transfer
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
project_id (int)
**kwargs
GitlabAuthenticationError – If authentication is not correct
GitlabTransferProjectError – If the project could not be transferred
None
Delete a shared group link within a group.
group_id (int) – ID of the group.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabDeleteError – If the server failed to perform the request
None
Bases:AccessRequestMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[GroupAccessRequest
],CreateMixin
[GroupAccessRequest
],DeleteMixin
[GroupAccessRequest
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,ObjectRotateMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:CreateMixin
[GroupAccessToken
],DeleteMixin
[GroupAccessToken
],RetrieveMixin
[GroupAccessToken
],RotateMixin
[GroupAccessToken
]
Object Creation
Required attributes for object create:
name
scopes
Optional attributes for object create:
access_level
expires_at
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[GroupApprovalRule
],CreateMixin
[GroupApprovalRule
],UpdateMixin
[GroupApprovalRule
]
Object Creation
Required attributes for object create:
name
approvals_required
Optional attributes for object create:
user_ids
group_ids
rule_type
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[GroupAuditEvent
]
Object listing filters
created_after
created_before
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:BadgeRenderMixin
[GroupBadge
],CRUDMixin
[GroupBadge
]
Object Creation
Required attributes for object create:
link_url
image_url
Object update
Optional attributes for object update:
link_url
image_url
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[GroupBillableMember
],DeleteMixin
[GroupBillableMember
]
Object listing filters
search
sort
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[GroupBillableMemberMembership
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:CRUDMixin
[GroupBoardList
]
Object Creation
Mutually exclusive attributes for object create:
label_id
assignee_id
milestone_id
iteration_id
Object update
Required attributes for object update:
position
gl (Gitlab)
parent (RESTObject |None)
Bases:CRUDMixin
[GroupBoard
]
Object Creation
Required attributes for object create:
name
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:CRUDMixin
[GroupCluster
]
Object Creation
Required attributes for object create:
name
platform_kubernetes_attributes
Optional attributes for object create:
domain
enabled
managed
environment_scope
Object update
Optional attributes for object update:
name
domain
management_project_id
platform_kubernetes_attributes
environment_scope
gl (Gitlab)
parent (RESTObject |None)
Create a new object.
GitlabAuthenticationError – If authentication is not correct
GitlabCreateError – If the server cannot perform the request
the data sent by the server
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[GroupCustomAttribute
],SetMixin
[GroupCustomAttribute
],DeleteMixin
[GroupCustomAttribute
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[GroupDeployToken
],CreateMixin
[GroupDeployToken
],DeleteMixin
[GroupDeployToken
]
Object listing filters
scopes
Object Creation
Required attributes for object create:
name
scopes
Optional attributes for object create:
expires_at
username
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:SubgroupBaseManager
[GroupDescendantGroup
]
This manager inherits from GroupSubgroupManager as descendant groupsshare all attributes with subgroups, except the path and object class.
Object listing filters
skip_groups
all_available
search
order_by
sort
statistics
owned
with_custom_attributes
min_access_level
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,SaveMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:NoUpdateMixin
[GroupEpicAwardEmoji
]
Object Creation
Required attributes for object create:
name
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetMixin
[GroupEpicDiscussionNote
],CreateMixin
[GroupEpicDiscussionNote
],UpdateMixin
[GroupEpicDiscussionNote
],DeleteMixin
[GroupEpicDiscussionNote
]
Object Creation
Required attributes for object create:
body
Optional attributes for object create:
created_at
Object update
Required attributes for object update:
body
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,SaveMixin
,RESTObject
manager (GroupEpicIssueManager)
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Save the changes made to the object to the server.
The object is updated to match what the server returns.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabUpdateError – If the server cannot perform the request
None
Bases:ListMixin
[GroupEpicIssue
],CreateMixin
[GroupEpicIssue
],UpdateMixin
[GroupEpicIssue
],DeleteMixin
[GroupEpicIssue
]
Object Creation
Required attributes for object create:
issue_id
Object update
Optional attributes for object update:
move_before_id
move_after_id
gl (Gitlab)
parent (RESTObject |None)
Create a new object.
GitlabAuthenticationError – If authentication is not correct
GitlabCreateError – If the server cannot perform the request
the data sent by the server
Object listing filters
author_id
labels
order_by
sort
search
Object Creation
Required attributes for object create:
title
Optional attributes for object create:
labels
description
start_date
end_date
Object update
Optional attributes for object update:
title
labels
description
start_date
end_date
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:NoUpdateMixin
[GroupEpicNoteAwardEmoji
]
Object Creation
Required attributes for object create:
name
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:CRUDMixin
[GroupEpicNote
]
Object Creation
Required attributes for object create:
body
Optional attributes for object create:
created_at
Object update
Required attributes for object update:
body
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[GroupEpicResourceLabelEvent
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:DownloadMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetWithoutIdMixin
[GroupExport
],CreateMixin
[GroupExport
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Test a Group Hook
trigger (str) – Type of trigger event to test
GitlabHookTestError – If the hook test attempt failed
None
Object Creation
Required attributes for object create:
url
Optional attributes for object create:
push_events
issues_events
confidential_issues_events
merge_requests_events
tag_push_events
note_events
confidential_note_events
job_events
pipeline_events
wiki_page_events
deployment_events
releases_events
subgroup_events
enable_ssl_verification
token
Object update
Required attributes for object update:
url
Optional attributes for object update:
push_events
issues_events
confidential_issues_events
merge_requests_events
tag_push_events
note_events
confidential_note_events
job_events
pipeline_events
wiki_page_events
deployment_events
releases_events
subgroup_events
enable_ssl_verification
token
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetWithoutIdMixin
[GroupImport
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:InvitationMixin
[GroupInvitation
]
Object listing filters
query
Object Creation
Required attributes for object create:
access_level
Optional attributes for object create:
expires_at
invite_source
tasks_to_be_done
tasks_project_id
Mutually exclusive attributes for object create:
email
user_id
Object update
Optional attributes for object update:
access_level
expires_at
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[GroupIssue
]
Object listing filters
state
labels
milestone
order_by
sort
iids
author_id
iteration_id
assignee_id
my_reaction_emoji
search
created_after
created_before
updated_after
updated_before
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RefreshMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetWithoutIdMixin
[GroupIssuesStatistics
]
Object listing filters
iids
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[GroupIteration
]
Object listing filters
include_ancestors
include_descendants
in
search
state
updated_after
updated_before
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[GroupLDAPGroupLink
],CreateMixin
[GroupLDAPGroupLink
],DeleteMixin
[GroupLDAPGroupLink
]
Object Creation
Required attributes for object create:
provider
group_access
Mutually exclusive attributes for object create:
cn
filter
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SubscribableMixin
,SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (GroupLabelManager)
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Saves the changes made to the object to the server.
The object is updated to match what the server returns.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct.
GitlabUpdateError – If the server cannot perform the request.
None
Bases:RetrieveMixin
[GroupLabel
],CreateMixin
[GroupLabel
],UpdateMixin
[GroupLabel
],DeleteMixin
[GroupLabel
]
Object Creation
Required attributes for object create:
name
color
Optional attributes for object create:
description
priority
Object update
Required attributes for object update:
name
Optional attributes for object update:
new_name
color
description
priority
gl (Gitlab)
parent (RESTObject |None)
Object listing filters
skip_groups
all_available
search
order_by
sort
statistics
owned
with_custom_attributes
min_access_level
top_level_only
Object Creation
Required attributes for object create:
name
path
Optional attributes for object create:
description
membership_lock
visibility
share_with_group_lock
require_two_factor_authentication
two_factor_grace_period
project_creation_level
auto_devops_enabled
subgroup_creation_level
emails_disabled
avatar
mentions_disabled
lfs_enabled
request_access_enabled
parent_id
default_branch_protection
shared_runners_minutes_limit
extra_shared_runners_minutes_limit
Object update
Optional attributes for object update:
name
path
description
membership_lock
share_with_group_lock
visibility
require_two_factor_authentication
two_factor_grace_period
project_creation_level
auto_devops_enabled
subgroup_creation_level
emails_disabled
avatar
mentions_disabled
lfs_enabled
request_access_enabled
default_branch_protection
file_template_project_id
shared_runners_minutes_limit
extra_shared_runners_minutes_limit
prevent_forking_outside_group
shared_runners_setting
gl (Gitlab)
parent (RESTObject |None)
Import a group from an archive file.
file (BinaryIO) – Data or file object containing the group
path (str) – The path for the new group to be imported.
name (str) – The name for the new group.
parent_id (int |str |None) – ID of a parent group that the group willbe imported into.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabImportError – If the server failed to perform the request
A representation of the import status.
dict[str,Any] |Response
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[GroupMemberAll
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:CRUDMixin
[GroupMember
]
Object Creation
Required attributes for object create:
access_level
Optional attributes for object create:
expires_at
tasks_to_be_done
Mutually exclusive attributes for object create:
username
user_id
Object update
Required attributes for object update:
access_level
Optional attributes for object update:
expires_at
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[GroupMemberRole
],CreateMixin
[GroupMemberRole
],DeleteMixin
[GroupMemberRole
]
Object Creation
Required attributes for object create:
name
base_access_level
Optional attributes for object create:
description
admin_cicd_variables
admin_compliance_framework
admin_group_member
admin_group_member
admin_merge_request
admin_push_rules
admin_terraform_state
admin_vulnerability
admin_web_hook
archive_project
manage_deploy_tokens
manage_group_access_tokens
manage_merge_request_settings
manage_project_access_tokens
manage_security_policy_link
read_code
read_runners
read_dependency
read_vulnerability
remove_group
remove_project
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[GroupMergeRequest
]
Object listing filters
state
order_by
sort
milestone
view
labels
created_after
created_before
updated_after
updated_before
scope
author_id
assignee_id
approver_ids
approved_by_ids
my_reaction_emoji
source_branch
target_branch
search
wip
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
List issues related to this milestone.
get_all – If True, return all the items, without pagination
per_page – Number of items to retrieve per request
page – ID of the page to return (starts with page 1)
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabListError – If the list could not be retrieved
The list of issues
List the merge requests related to this milestone.
get_all – If True, return all the items, without pagination
per_page – Number of items to retrieve per request
page – ID of the page to return (starts with page 1)
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabListError – If the list could not be retrieved
The list of merge requests
Bases:CRUDMixin
[GroupMilestone
]
Object listing filters
iids
state
search
Object Creation
Required attributes for object create:
title
Optional attributes for object create:
description
due_date
start_date
Object update
Optional attributes for object update:
title
description
due_date
start_date
state_event
gl (Gitlab)
parent (RESTObject |None)
Bases:NotificationSettings
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:NotificationSettingsManager
Object Creation
Object update
Optional attributes for object update:
level
notification_email
new_note
new_issue
reopen_issue
close_issue
reassign_issue
new_merge_request
reopen_merge_request
close_merge_request
reassign_merge_request
merge_merge_request
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[GroupPackage
]
Object listing filters
exclude_subgroups
order_by
sort
package_type
package_name
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[GroupProject
]
Object listing filters
archived
visibility
order_by
sort
search
simple
owned
starred
with_custom_attributes
include_subgroups
with_issues_enabled
with_merge_requests_enabled
with_shared
min_access_level
with_security_reports
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetWithoutIdMixin
[GroupPushRules
],CreateMixin
[GroupPushRules
],UpdateMixin
[GroupPushRules
],DeleteMixin
[GroupPushRules
]
Object Creation
Optional attributes for object create:
deny_delete_tag
member_check
prevent_secrets
commit_message_regex
commit_message_negative_regex
branch_name_regex
author_email_regex
file_name_regex
max_file_size
commit_committer_check
reject_unsigned_commits
Object update
Optional attributes for object update:
deny_delete_tag
member_check
prevent_secrets
commit_message_regex
commit_message_negative_regex
branch_name_regex
author_email_regex
file_name_regex
max_file_size
commit_committer_check
reject_unsigned_commits
gl (Gitlab)
parent (RESTObject |None)
Bases:ListMixin
[ProjectRegistryRepository
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[GroupRunner
]
Object listing filters
scope
tag_list
Object Creation
Required attributes for object create:
runner_id
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:NoUpdateMixin
[GroupSAMLGroupLink
]
Object Creation
Required attributes for object create:
saml_group_name
access_level
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:CreateMixin
[GroupServiceAccount
],DeleteMixin
[GroupServiceAccount
],ListMixin
[GroupServiceAccount
]
Object Creation
Optional attributes for object create:
name
username
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:SubgroupBaseManager
[GroupSubgroup
]
Object listing filters
skip_groups
all_available
search
order_by
sort
statistics
owned
with_custom_attributes
min_access_level
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:CRUDMixin
[GroupVariable
]
Object Creation
Required attributes for object create:
key
value
Optional attributes for object create:
protected
variable_type
masked
Object update
Required attributes for object update:
key
value
Optional attributes for object update:
protected
variable_type
masked
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,UploadMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Object listing filters
with_content
Object Creation
Required attributes for object create:
title
content
Optional attributes for object create:
format
Object update
Optional attributes for object update:
title
content
format
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:NoUpdateMixin
[Hook
]
Object Creation
Required attributes for object create:
url
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[Issue
]
Object listing filters
state
labels
milestone
scope
author_id
iteration_id
assignee_id
my_reaction_emoji
iids
order_by
sort
search
created_after
created_before
updated_after
updated_before
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RefreshMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetWithoutIdMixin
[IssuesStatistics
]
Object listing filters
iids
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Retrieve a single object.
id (int |str |None) – ID of the object to retrieve
lazy (bool) – If True, don’t request the server, but create ashallow object giving access to the managers. This isuseful if you want to avoid useless calls to the API.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
The generated RESTObject.
GitlabAuthenticationError – If authentication is not correct
GitlabGetError – If the server cannot perform the request
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RESTManager
[LDAPGroup
]
Object listing filters
search
provider
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Retrieve a list of objects.
get_all – If True, return all the items, without pagination
per_page – Number of items to retrieve per request
page – ID of the page to return (starts with page 1)
iterator (bool) – If set to True and no pagination option isdefined, return a generator instead of a list
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
The list of objects, or a generator ifiterator is True
GitlabAuthenticationError – If authentication is not correct
GitlabListError – If the server cannot perform the request
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[License
]
Object listing filters
popular
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[MemberRole
],CreateMixin
[MemberRole
],DeleteMixin
[MemberRole
]
Object Creation
Required attributes for object create:
name
base_access_level
Optional attributes for object create:
description
admin_cicd_variables
admin_compliance_framework
admin_group_member
admin_group_member
admin_merge_request
admin_push_rules
admin_terraform_state
admin_vulnerability
admin_web_hook
archive_project
manage_deploy_tokens
manage_group_access_tokens
manage_merge_request_settings
manage_project_access_tokens
manage_security_policy_link
read_code
read_runners
read_dependency
read_vulnerability
remove_group
remove_project
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[MergeRequest
]
Object listing filters
state
order_by
sort
milestone
view
labels
with_labels_details
with_merge_status_recheck
created_after
created_before
updated_after
updated_before
scope
author_id
author_username
assignee_id
approver_ids
approved_by_ids
reviewer_id
reviewer_username
my_reaction_emoji
source_branch
target_branch
search
in
wip
not
environment
deployed_before
deployed_after
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[Namespace
]
Object listing filters
search
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Get existence of a namespace by path.
namespace (str) – The path to the namespace.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabGetError – If the server failed to perform the request
Data on namespace existence returned from the server.
Bases:SaveMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetWithoutIdMixin
[NotificationSettings
],UpdateMixin
[NotificationSettings
]
Object Creation
Object update
Optional attributes for object update:
level
notification_email
new_note
new_issue
reopen_issue
close_issue
reassign_issue
new_merge_request
reopen_merge_request
close_merge_request
reassign_merge_request
merge_merge_request
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[PagesDomain
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,ObjectRotateMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:DeleteMixin
[PersonalAccessToken
],RetrieveMixin
[PersonalAccessToken
],RotateMixin
[PersonalAccessToken
]
Object listing filters
user_id
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RefreshMixin
,SaveMixin
,ObjectDeleteMixin
,RepositoryMixin
,UploadMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Archive a project.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabCreateError – If the server failed to perform the request
None
Create a forked from/to relation between existing projects.
forked_from_id (int) – The ID of the project that was forked from
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabCreateError – If the relation could not be created
None
Delete a forked relation between existing projects.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabDeleteError – If the server failed to perform the request
None
Start the housekeeping task.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabHousekeepingError – If the server failed to perform the request
None
Get languages used in the project with percentage value.
Start the pull mirroring process for the project.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabCreateError – If the server failed to perform the request
None
Get a project’s pull mirror details.
Introduced in GitLab 15.5.
Restore a project marked for deletion.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabRestoreError – If the server failed to perform the request
None
Search the project resources matching the provided string.’
scope (str) – Scope of the search
search (str) – Search string
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabSearchError – If the server failed to perform the request
A list of dicts describing the resources found.
GitlabList | list[dict[str,Any]]
Share the project with a group.
group_id (int) – ID of the group.
group_access (int) – Access level for the group.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
expires_at (str |None)
**kwargs
GitlabAuthenticationError – If authentication is not correct
GitlabCreateError – If the server failed to perform the request
None
Return a snapshot of the repository.
wiki (bool) – If True return the wiki repository
streamed (bool) – If True the data will be processed by chunks ofchunk_size and each chunk is passed toaction fortreatment.
iterator (bool) – If True directly return the underlying responseiterator
action (Callable[[bytes],Any]|None) – Callable responsible of dealing with chunk ofdata
chunk_size (int) – Size of each chunk
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabGetError – If the content could not be retrieved
The uncompressed tar archive of the repository
bytes |Iterator[Any] | None
Star a project.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabCreateError – If the server failed to perform the request
None
Transfer a project to the given namespace ID
to_namespace (int |str) – ID or path of the namespace to transfer the
to (project)
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabTransferProjectError – If the project could not be transferred
None
Trigger a CI build.
Seehttps://gitlab.com/help/ci/triggers/README.md#trigger-a-build
GitlabAuthenticationError – If authentication is not correct
GitlabCreateError – If the server failed to perform the request
Unarchive a project.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabDeleteError – If the server failed to perform the request
None
Delete a shared project link within a group.
group_id (int) – ID of the group.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabDeleteError – If the server failed to perform the request
None
Unstar a project.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabDeleteError – If the server failed to perform the request
None
Bases:AccessRequestMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[ProjectAccessRequest
],CreateMixin
[ProjectAccessRequest
],DeleteMixin
[ProjectAccessRequest
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,ObjectRotateMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:CreateMixin
[ProjectAccessToken
],DeleteMixin
[ProjectAccessToken
],RetrieveMixin
[ProjectAccessToken
],RotateMixin
[ProjectAccessToken
]
Object Creation
Required attributes for object create:
name
scopes
Optional attributes for object create:
access_level
expires_at
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RefreshMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetWithoutIdMixin
[ProjectAdditionalStatistics
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetWithoutIdMixin
[ProjectApproval
],UpdateMixin
[ProjectApproval
]
Object Creation
Object update
Optional attributes for object update:
approvals_before_merge
reset_approvals_on_push
disable_overriding_approvers_per_merge_request
merge_requests_author_approval
merge_requests_disable_committers_approval
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectApprovalRule
],CreateMixin
[ProjectApprovalRule
],UpdateMixin
[ProjectApprovalRule
],DeleteMixin
[ProjectApprovalRule
]
Object Creation
Required attributes for object create:
name
approvals_required
Optional attributes for object create:
user_ids
group_ids
protected_branch_ids
usernames
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
Dummy object to manage custom actions on artifacts
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RESTManager
[ProjectArtifact
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Delete the project’s artifacts on the server.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabDeleteError – If the server cannot perform the request
None
Get the job artifacts archive from a specific tag or branch.
ref_name (str) – Branch or tag name in repository. HEAD or SHA referencesare not supported.
job (str) – The name of the job.
job_token – Job token for multi-project pipeline triggers.
streamed (bool) – If True the data will be processed by chunks ofchunk_size and each chunk is passed toaction fortreatment
iterator (bool) – If True directly return the underlying responseiterator
action (Callable[[bytes],Any]|None) – Callable responsible of dealing with chunk ofdata
chunk_size (int) – Size of each chunk
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabGetError – If the artifacts could not be retrieved
The artifacts ifstreamed is False, None otherwise.
bytes |Iterator[Any] | None
Download a single artifact file from a specific tag or branch fromwithin the job’s artifacts archive.
ref_name (str) – Branch or tag name in repository. HEAD or SHA referencesare not supported.
artifact_path (str) – Path to a file inside the artifacts archive.
job (str) – The name of the job.
streamed (bool) – If True the data will be processed by chunks ofchunk_size and each chunk is passed toaction fortreatment
iterator (bool) – If True directly return the underlying responseiterator
action (Callable[[bytes],Any]|None) – Callable responsible of dealing with chunk ofdata
chunk_size (int) – Size of each chunk
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabGetError – If the artifacts could not be retrieved
The artifact ifstreamed is False, None otherwise.
bytes |Iterator[Any] | None
Bases:ProjectAuditEvent
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectAuditEvent
]
Object listing filters
created_after
created_before
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ProjectAuditEventManager
Object listing filters
created_after
created_before
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:BadgeRenderMixin
[ProjectBadge
],CRUDMixin
[ProjectBadge
]
Object Creation
Required attributes for object create:
link_url
image_url
Object update
Optional attributes for object update:
link_url
image_url
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:CRUDMixin
[ProjectBoardList
]
Object Creation
Mutually exclusive attributes for object create:
label_id
assignee_id
milestone_id
iteration_id
Object update
Required attributes for object update:
position
gl (Gitlab)
parent (RESTObject |None)
Bases:CRUDMixin
[ProjectBoard
]
Object Creation
Required attributes for object create:
name
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:NoUpdateMixin
[ProjectBranch
]
Object Creation
Required attributes for object create:
branch
ref
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetWithoutIdMixin
[ProjectCiLint
],CreateMixin
[ProjectCiLint
]
Object Creation
Required attributes for object create:
content
Optional attributes for object create:
dry_run
include_jobs
ref
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:NoUpdateMixin
[ProjectClusterAgent
]
Object Creation
Required attributes for object create:
name
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:CRUDMixin
[ProjectCluster
]
Object Creation
Required attributes for object create:
name
platform_kubernetes_attributes
Optional attributes for object create:
domain
enabled
managed
environment_scope
Object update
Optional attributes for object update:
name
domain
management_project_id
platform_kubernetes_attributes
environment_scope
gl (Gitlab)
parent (RESTObject |None)
Create a new object.
GitlabAuthenticationError – If authentication is not correct
GitlabCreateError – If the server cannot perform the request
the data sent by the server
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Cherry-pick a commit into a branch.
branch (str) – Name of target branch
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabCherryPickError – If the cherry-pick could not be performed
The new commit data (not a RESTObject)
dict[str,Any] |Response
Generate the commit diff.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabGetError – If the diff could not be retrieved
The changes done in this commit
GitlabList | list[dict[str,Any]]
List the merge requests related to the commit.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabGetError – If the references could not be retrieved
The merge requests related to the commit.
GitlabList | list[dict[str,Any]]
List the references the commit is pushed to.
type (str) – The scope of references (‘branch’, ‘tag’ or ‘all’)
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabGetError – If the references could not be retrieved
The references the commit is pushed to.
GitlabList | list[dict[str,Any]]
Revert a commit on a given branch.
branch (str) – Name of target branch
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabRevertError – If the revert could not be performed
The new commit data (not a RESTObject)
dict[str,Any] |Response
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[ProjectCommitComment
],CreateMixin
[ProjectCommitComment
]
Object Creation
Required attributes for object create:
note
Optional attributes for object create:
path
line
line_type
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectCommitDiscussion
],CreateMixin
[ProjectCommitDiscussion
]
Object Creation
Required attributes for object create:
body
Optional attributes for object create:
created_at
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetMixin
[ProjectCommitDiscussionNote
],CreateMixin
[ProjectCommitDiscussionNote
],UpdateMixin
[ProjectCommitDiscussionNote
],DeleteMixin
[ProjectCommitDiscussionNote
]
Object Creation
Required attributes for object create:
body
Optional attributes for object create:
created_at
position
Object update
Required attributes for object update:
body
gl (Gitlab)
parent (RESTObject |None)
Bases:RetrieveMixin
[ProjectCommit
],CreateMixin
[ProjectCommit
]
Object listing filters
all
ref_name
since
until
path
with_stats
first_parent
order
trailers
Object Creation
Required attributes for object create:
branch
commit_message
actions
Optional attributes for object create:
author_email
author_name
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RefreshMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[ProjectCommitStatus
],CreateMixin
[ProjectCommitStatus
]
Object Creation
Required attributes for object create:
state
Optional attributes for object create:
description
name
context
ref
target_url
coverage
Object update
gl (Gitlab)
parent (RESTObject |None)
Create a new object.
GitlabAuthenticationError – If authentication is not correct
GitlabCreateError – If the server cannot perform the request
the data sent by the server
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectCustomAttribute
],SetMixin
[ProjectCustomAttribute
],DeleteMixin
[ProjectCustomAttribute
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectDeployToken
],CreateMixin
[ProjectDeployToken
],DeleteMixin
[ProjectDeployToken
]
Object listing filters
scopes
Object Creation
Required attributes for object create:
name
scopes
Optional attributes for object create:
expires_at
username
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Approve or reject a blocked deployment.
status (str) – Either “approved” or “rejected”
comment (str |None) – A comment to go with the approval
represented_as (str |None) – The name of the User/Group/Role to use for theapproval, when the user belongs to multipleapproval rules.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabMRApprovalError – If the approval failed
A dict containing the result.
dict[str,Any]
https://docs.gitlab.com/ee/api/deployments.html#approve-or-reject-a-blocked-deployment
Bases:RetrieveMixin
[ProjectDeployment
],CreateMixin
[ProjectDeployment
],UpdateMixin
[ProjectDeployment
]
Object listing filters
order_by
sort
updated_after
updated_before
environment
status
Object Creation
Required attributes for object create:
sha
ref
tag
status
environment
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:MergeRequest
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:MergeRequestManager
Object listing filters
state
order_by
sort
milestone
view
labels
with_labels_details
with_merge_status_recheck
created_after
created_before
updated_after
updated_before
scope
author_id
author_username
assignee_id
approver_ids
approved_by_ids
reviewer_id
reviewer_username
my_reaction_emoji
source_branch
target_branch
search
in
wip
not
environment
deployed_before
deployed_after
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectDockerfileTemplate
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectEnvironment
],CreateMixin
[ProjectEnvironment
],UpdateMixin
[ProjectEnvironment
],DeleteMixin
[ProjectEnvironment
]
Object listing filters
name
search
states
Object Creation
Required attributes for object create:
name
Optional attributes for object create:
external_url
Object update
Optional attributes for object update:
name
external_url
gl (Gitlab)
parent (RESTObject |None)
Bases:Event
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:EventManager
Object listing filters
action
target_type
before
after
sort
scope
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:DownloadMixin
,RefreshMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetWithoutIdMixin
[ProjectExport
],CreateMixin
[ProjectExport
]
Object Creation
Optional attributes for object create:
description
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[ProjectExternalStatusCheck
],CreateMixin
[ProjectExternalStatusCheck
],UpdateMixin
[ProjectExternalStatusCheck
],DeleteMixin
[ProjectExternalStatusCheck
]
Object Creation
Required attributes for object create:
name
external_url
Optional attributes for object create:
shared_secret
protected_branch_ids
Object update
Optional attributes for object update:
name
external_url
shared_secret
protected_branch_ids
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (ProjectFileManager)
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Returns the decoded content of the file.
The decoded content.
bytes
Delete the file from the server.
branch (str) – Branch from which the file will be removed
commit_message (str) – Commit message for the deletion
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabDeleteError – If the server cannot perform the request
None
Save the changes made to the file to the server.
The object is updated to match what the server returns.
branch (str) – Branch in which the file will be updated
commit_message (str) – Message to send with the commit
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabUpdateError – If the server cannot perform the request
None
Bases:CreateMixin
[ProjectFile
],UpdateMixin
[ProjectFile
],DeleteMixin
[ProjectFile
]
Object Creation
Required attributes for object create:
file_path
branch
content
commit_message
Optional attributes for object create:
encoding
author_email
author_name
execute_filemode
start_branch
Object update
Required attributes for object update:
file_path
branch
content
commit_message
Optional attributes for object update:
encoding
author_email
author_name
execute_filemode
start_branch
last_commit_id
gl (Gitlab)
parent (RESTObject |None)
Return the content of a file for a commit.
file_path (str) – Path of the file to retrieve
ref (str) – Name of the branch, tag or commit
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabListError – If the server failed to perform the request
A list of commits/lines matching the file
list[dict[str,Any]]
Create a new object.
the data sent by the server
GitlabAuthenticationError – If authentication is not correct
GitlabCreateError – If the server cannot perform the request
Delete a file on the server.
file_path (str) – Path of the file to remove
branch (str) – Branch from which the file will be removed
commit_message (str) – Commit message for the deletion
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabDeleteError – If the server cannot perform the request
None
Retrieve a single file.
file_path (str) – Path of the file to retrieve
ref (str) – Name of the branch, tag or commit
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabGetError – If the file could not be retrieved
The generated RESTObject
Retrieve just metadata for a single file.
file_path (str) – Path of the file to retrieve
ref (str) – Name of the branch, tag or commit
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabGetError – If the file could not be retrieved
The response headers as a dictionary
CaseInsensitiveDict[Any]
Return the content of a file for a commit.
file_path (str) – Path of the file to return
ref (str |None) – ID of the commit
streamed (bool) – If True the data will be processed by chunks ofchunk_size and each chunk is passed toaction fortreatment
action (Callable[[...],Any]|None) – Callable responsible for dealing with each chunk ofdata
chunk_size (int) – Size of each chunk
iterator (bool) – If True directly return the underlying responseiterator
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabGetError – If the file could not be retrieved
The file content
bytes |Iterator[Any] | None
Update an object on the server.
The new object data (not a RESTObject)
GitlabAuthenticationError – If authentication is not correct
GitlabUpdateError – If the server cannot perform the request
dict[str,Any]
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:CreateMixin
[ProjectFork
],ListMixin
[ProjectFork
]
Object listing filters
archived
visibility
order_by
sort
search
simple
owned
membership
starred
statistics
with_custom_attributes
with_issues_enabled
with_merge_requests_enabled
Object Creation
Optional attributes for object create:
namespace
Object update
gl (Gitlab)
parent (RESTObject |None)
Creates a new object.
GitlabAuthenticationError – If authentication is not correct
GitlabCreateError – If the server cannot perform the request
the data sent by the server
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectGitignoreTemplate
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectGitlabciymlTemplate
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Test a Project Hook
trigger (str) – Type of trigger event to test
GitlabHookTestError – If the hook test attempt failed
None
Bases:CRUDMixin
[ProjectHook
]
Object Creation
Required attributes for object create:
url
Optional attributes for object create:
push_events
issues_events
confidential_issues_events
merge_requests_events
tag_push_events
note_events
job_events
pipeline_events
wiki_page_events
enable_ssl_verification
token
Object update
Required attributes for object update:
url
Optional attributes for object update:
push_events
issues_events
confidential_issues_events
merge_requests_events
tag_push_events
note_events
job_events
pipeline_events
wiki_events
enable_ssl_verification
token
gl (Gitlab)
parent (RESTObject |None)
Bases:RefreshMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetWithoutIdMixin
[ProjectImport
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetMixin
[ProjectIntegration
],UpdateMixin
[ProjectIntegration
],DeleteMixin
[ProjectIntegration
],ListMixin
[ProjectIntegration
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
List the services known by python-gitlab.
The list of service code names.
List[str]
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:InvitationMixin
[ProjectInvitation
]
Object listing filters
query
Object Creation
Required attributes for object create:
access_level
Optional attributes for object create:
expires_at
invite_source
tasks_to_be_done
tasks_project_id
Mutually exclusive attributes for object create:
email
user_id
Object update
Optional attributes for object update:
access_level
expires_at
gl (Gitlab)
parent (RESTObject |None)
Bases:UserAgentDetailMixin
,SubscribableMixin
,TodoMixin
,TimeTrackingMixin
,ParticipantsMixin
,SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
List merge requests that will close the issue when merged.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabGetErrot – If the merge requests could not be retrieved
The list of merge requests.
GitlabList | list[dict[str,Any]]
Move the issue to another project.
to_project_id (int) – ID of the target project
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabUpdateError – If the issue could not be moved
None
List merge requests related to the issue.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabGetErrot – If the merge requests could not be retrieved
The list of merge requests.
GitlabList | list[dict[str,Any]]
Reorder an issue on a board.
move_after_id (int |None) – ID of an issue that should be placed after this issue
move_before_id (int |None) – ID of an issue that should be placed before this issue
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabUpdateError – If the issue could not be reordered
None
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:NoUpdateMixin
[ProjectIssueAwardEmoji
]
Object Creation
Required attributes for object create:
name
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectIssueDiscussion
],CreateMixin
[ProjectIssueDiscussion
]
Object Creation
Required attributes for object create:
body
Optional attributes for object create:
created_at
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetMixin
[ProjectIssueDiscussionNote
],CreateMixin
[ProjectIssueDiscussionNote
],UpdateMixin
[ProjectIssueDiscussionNote
],DeleteMixin
[ProjectIssueDiscussionNote
]
Object Creation
Required attributes for object create:
body
Optional attributes for object create:
created_at
Object update
Required attributes for object update:
body
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[ProjectIssueLink
],CreateMixin
[ProjectIssueLink
],DeleteMixin
[ProjectIssueLink
]
Object Creation
Required attributes for object create:
target_project_id
target_issue_iid
Object update
gl (Gitlab)
parent (RESTObject |None)
Create a new object.
The source and target issues
GitlabAuthenticationError – If authentication is not correct
GitlabCreateError – If the server cannot perform the request
tuple[ProjectIssue,ProjectIssue]
Bases:CRUDMixin
[ProjectIssue
]
Object listing filters
iids
state
labels
milestone
scope
author_id
iteration_id
assignee_id
my_reaction_emoji
order_by
sort
search
created_after
created_before
updated_after
updated_before
Object Creation
Required attributes for object create:
title
Optional attributes for object create:
description
confidential
assignee_ids
assignee_id
milestone_id
labels
created_at
due_date
merge_request_to_resolve_discussions_of
discussion_to_resolve
Object update
Optional attributes for object update:
title
description
confidential
assignee_ids
assignee_id
milestone_id
labels
state_event
updated_at
due_date
discussion_locked
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:NoUpdateMixin
[ProjectIssueNoteAwardEmoji
]
Object Creation
Required attributes for object create:
name
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:CRUDMixin
[ProjectIssueNote
]
Object Creation
Required attributes for object create:
body
Optional attributes for object create:
created_at
Object update
Required attributes for object update:
body
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectIssueResourceIterationEvent
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectIssueResourceLabelEvent
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectIssueResourceMilestoneEvent
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectIssueResourceStateEvent
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectIssueResourceWeightEvent
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectIssueTemplate
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RefreshMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetWithoutIdMixin
[ProjectIssuesStatistics
]
Object listing filters
iids
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ListMixin
[GroupIteration
]
Object listing filters
include_ancestors
include_descendants
in
search
state
updated_after
updated_before
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RefreshMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Get a single artifact file from within the job’s artifacts archive.
path (str) – Path of the artifact
streamed (bool) – If True the data will be processed by chunks ofchunk_size and each chunk is passed toaction fortreatment
iterator (bool) – If True directly return the underlying responseiterator
action (Callable[[...],Any]|None) – Callable responsible of dealing with chunk ofdata
chunk_size (int) – Size of each chunk
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabGetError – If the artifacts could not be retrieved
The artifacts ifstreamed is False, None otherwise.
bytes |Iterator[Any] | None
Get the job artifacts.
streamed (bool) – If True the data will be processed by chunks ofchunk_size and each chunk is passed toaction fortreatment
iterator (bool) – If True directly return the underlying responseiterator
action (Callable[[...],Any]|None) – Callable responsible of dealing with chunk ofdata
chunk_size (int) – Size of each chunk
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabGetError – If the artifacts could not be retrieved
The artifacts ifstreamed is False, None otherwise.
bytes |Iterator[Any] | None
Delete artifacts of a job.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabDeleteError – If the request could not be performed
None
Erase the job (remove job artifacts and trace).
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabJobEraseError – If the job could not be erased
None
Prevent artifacts from being deleted when expiration is set.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabCreateError – If the request could not be performed
None
Trigger a job explicitly.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabJobPlayError – If the job could not be triggered
None
Get the job trace.
streamed (bool) – If True the data will be processed by chunks ofchunk_size and each chunk is passed toaction fortreatment
iterator (bool) – If True directly return the underlying responseiterator
action (Callable[[...],Any]|None) – Callable responsible of dealing with chunk ofdata
chunk_size (int) – Size of each chunk
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabGetError – If the artifacts could not be retrieved
The trace
bytes |Iterator[Any] | None
Bases:RetrieveMixin
[ProjectJob
]
Object listing filters
scope
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RefreshMixin
,SaveMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetWithoutIdMixin
[ProjectJobTokenScope
],UpdateMixin
[ProjectJobTokenScope
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:CRUDMixin
[ProjectKey
]
Object Creation
Required attributes for object create:
title
key
Optional attributes for object create:
can_push
expires_at
Object update
Optional attributes for object update:
title
can_push
expires_at
gl (Gitlab)
parent (RESTObject |None)
Enable a deploy key for a project.
key_id (int) – The ID of the key to enable
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabProjectDeployKeyError – If the key could not be enabled
A dict of the result.
dict[str,Any] |Response
Bases:PromoteMixin
,SubscribableMixin
,SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (ProjectLabelManager)
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Saves the changes made to the object to the server.
The object is updated to match what the server returns.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct.
GitlabUpdateError – If the server cannot perform the request.
None
Bases:RetrieveMixin
[ProjectLabel
],CreateMixin
[ProjectLabel
],UpdateMixin
[ProjectLabel
],DeleteMixin
[ProjectLabel
]
Object Creation
Required attributes for object create:
name
color
Optional attributes for object create:
description
priority
Object update
Required attributes for object update:
name
Optional attributes for object update:
new_name
color
description
priority
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectLicenseTemplate
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Object listing filters
archived
id_after
id_before
last_activity_after
last_activity_before
membership
min_access_level
order_by
owned
repository_checksum_failed
repository_storage
search_namespaces
search
simple
sort
starred
statistics
topic
visibility
wiki_checksum_failed
with_custom_attributes
with_issues_enabled
with_merge_requests_enabled
with_programming_language
Object Creation
Optional attributes for object create:
name
path
allow_merge_on_skipped_pipeline
only_allow_merge_if_all_status_checks_passed
analytics_access_level
approvals_before_merge
auto_cancel_pending_pipelines
auto_devops_deploy_strategy
auto_devops_enabled
autoclose_referenced_issues
avatar
build_coverage_regex
build_git_strategy
build_timeout
builds_access_level
ci_config_path
container_expiration_policy_attributes
container_registry_access_level
container_registry_enabled
default_branch
description
emails_disabled
external_authorization_classification_label
forking_access_level
group_with_project_templates_id
import_url
initialize_with_readme
issues_access_level
issues_enabled
jobs_enabled
lfs_enabled
merge_method
merge_pipelines_enabled
merge_requests_access_level
merge_requests_enabled
mirror_trigger_builds
mirror
namespace_id
operations_access_level
only_allow_merge_if_all_discussions_are_resolved
only_allow_merge_if_pipeline_succeeds
packages_enabled
pages_access_level
requirements_access_level
printing_merge_request_link_enabled
public_builds
releases_access_level
environments_access_level
feature_flags_access_level
infrastructure_access_level
monitor_access_level
remove_source_branch_after_merge
repository_access_level
repository_storage
request_access_enabled
resolve_outdated_diff_discussions
security_and_compliance_access_level
shared_runners_enabled
show_default_award_emojis
snippets_access_level
snippets_enabled
squash_option
tag_list
topics
template_name
template_project_id
use_custom_template
visibility
wiki_access_level
wiki_enabled
Object update
Optional attributes for object update:
allow_merge_on_skipped_pipeline
only_allow_merge_if_all_status_checks_passed
analytics_access_level
approvals_before_merge
auto_cancel_pending_pipelines
auto_devops_deploy_strategy
auto_devops_enabled
autoclose_referenced_issues
avatar
build_coverage_regex
build_git_strategy
build_timeout
builds_access_level
ci_config_path
ci_default_git_depth
ci_forward_deployment_enabled
ci_allow_fork_pipelines_to_run_in_parent_project
ci_separated_caches
container_expiration_policy_attributes
container_registry_access_level
container_registry_enabled
default_branch
description
emails_disabled
enforce_auth_checks_on_uploads
external_authorization_classification_label
forking_access_level
import_url
issues_access_level
issues_enabled
issues_template
jobs_enabled
keep_latest_artifact
lfs_enabled
merge_commit_template
merge_method
merge_pipelines_enabled
merge_requests_access_level
merge_requests_enabled
merge_requests_template
merge_trains_enabled
mirror_overwrites_diverged_branches
mirror_trigger_builds
mirror_user_id
mirror
mr_default_target_self
name
operations_access_level
only_allow_merge_if_all_discussions_are_resolved
only_allow_merge_if_pipeline_succeeds
only_mirror_protected_branches
packages_enabled
pages_access_level
requirements_access_level
restrict_user_defined_variables
path
public_builds
releases_access_level
environments_access_level
feature_flags_access_level
infrastructure_access_level
monitor_access_level
remove_source_branch_after_merge
repository_access_level
repository_storage
request_access_enabled
resolve_outdated_diff_discussions
security_and_compliance_access_level
service_desk_enabled
shared_runners_enabled
show_default_award_emojis
snippets_access_level
snippets_enabled
issue_branch_template
squash_commit_template
squash_option
suggestion_commit_message
tag_list
topics
visibility
wiki_access_level
wiki_enabled
gl (Gitlab)
parent (RESTObject |None)
Import a project from BitBucket Server to Gitlab (schedule the import)
This method will return when an import operation has been safely queued,or an error has occurred. After triggering an import, check theimport_status
of the newly created project to detect when the importoperation has completed.
Note
This request may take longer than most other API requests.So this method will specify a 60 second default timeout if none isspecified.A timeout can be specified via kwargs to override this functionality.
bitbucket_server_url (str) – Bitbucket Server URL
bitbucket_server_username (str) – Bitbucket Server Username
personal_access_token (str) – Bitbucket Server personal accesstoken/password
bitbucket_server_project (str) – Bitbucket Project Key
bitbucket_server_repo (str) – Bitbucket Repository Name
new_name (str |None) – New repository name (Optional)
target_namespace (str |None) – Namespace to import repository into.Supports subgroups like /namespace/subgroup (Optional)
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabListError – If the server failed to perform the request
A representation of the import status.
dict[str,Any] |Response
Example:
gl=gitlab.Gitlab_from_config()print("Triggering import")result=gl.projects.import_bitbucket_server(bitbucket_server_url="https://some.server.url",bitbucket_server_username="some_bitbucket_user",personal_access_token="my_password_or_access_token",bitbucket_server_project="my_project",bitbucket_server_repo="my_repo",new_name="gl_project_name",target_namespace="gl_project_path")project=gl.projects.get(ret['id'])print("Waiting for import to complete")whileproject.import_status==u'started':time.sleep(1.0)project=gl.projects.get(project.id)print("BitBucket import complete")
Import a project from Github to Gitlab (schedule the import)
This method will return when an import operation has been safely queued,or an error has occurred. After triggering an import, check theimport_status
of the newly created project to detect when the importoperation has completed.
Note
This request may take longer than most other API requests.So this method will specify a 60 second default timeout if none isspecified.A timeout can be specified via kwargs to override this functionality.
personal_access_token (str) – GitHub personal access token
repo_id (int) – Github repository ID
target_namespace (str) – Namespace to import repo into
new_name (str |None) – New repo name (Optional)
github_hostname (str |None) – Custom GitHub Enterprise hostname.Do not set for GitHub.com. (Optional)
optional_stages (dict[str,bool]|None) – Additional items to import. (Optional)
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabListError – If the server failed to perform the request
A representation of the import status.
dict[str,Any] |Response
Example:
gl=gitlab.Gitlab_from_config()print("Triggering import")result=gl.projects.import_github(ACCESS_TOKEN,123456,"my-group/my-subgroup")project=gl.projects.get(ret['id'])print("Waiting for import to complete")whileproject.import_status==u'started':time.sleep(1.0)project=gl.projects.get(project.id)print("Github import complete")
Import a project from an archive file.
file (BufferedReader) – Data or file object containing the project
path (str) – Name and path for the new project
name (str |None) – The name of the project to import. If not provided,defaults to the path of the project.
namespace (str |None) – The ID or path of the namespace that the projectwill be imported to
overwrite (bool) – If True overwrite an existing project with thesame path
override_params (dict[str,Any]|None) – Set the specific settings for the project
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabImportError – If the server failed to perform the request
A representation of the import status.
dict[str,Any] |Response
Import a project from an archive file stored on a remote URL.
url (str) – URL for the file containing the project data to import
path (str) – Name and path for the new project
name (str |None) – The name of the project to import. If not provided,defaults to the path of the project.
namespace (str |None) – The ID or path of the namespace that the projectwill be imported to
overwrite (bool) – If True overwrite an existing project with thesame path
override_params (dict[str,Any]|None) – Set the specific settings for the project
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabImportError – If the server failed to perform the request
A representation of the import status.
dict[str,Any] |Response
Import a project from an archive file stored on AWS S3.
region (str) – AWS S3 region name where the file is stored
bucket_name (str) – AWS S3 bucket name where the file is stored
file_key (str) – AWS S3 file key to identify the file.
access_key_id (str) – AWS S3 access key ID.
secret_access_key (str) – AWS S3 secret access key.
path (str) – Name and path for the new project
name (str |None) – The name of the project to import. If not provided,defaults to the path of the project.
namespace (str |None) – The ID or path of the namespace that the projectwill be imported to
overwrite (bool) – If True overwrite an existing project with thesame path
override_params (dict[str,Any]|None) – Set the specific settings for the project
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabImportError – If the server failed to perform the request
A representation of the import status.
dict[str,Any] |Response
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectMemberAll
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:CRUDMixin
[ProjectMember
]
Object Creation
Required attributes for object create:
access_level
Optional attributes for object create:
expires_at
tasks_to_be_done
Mutually exclusive attributes for object create:
username
user_id
Object update
Required attributes for object update:
access_level
Optional attributes for object update:
expires_at
gl (Gitlab)
parent (RESTObject |None)
Bases:SubscribableMixin
,TodoMixin
,TimeTrackingMixin
,ParticipantsMixin
,SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Approve the merge request.
sha (str |None) – Head SHA of MR
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabMRApprovalError – If the approval failed
A dict containing the result.
dict[str,Any]
https://docs.gitlab.com/ee/api/merge_request_approvals.html#approve-merge-request
Cancel merge when the pipeline succeeds.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabMROnBuildSuccessError – If the server could not handle the request
dict of the parsed json returned by the server
dict[str, str]
List issues that will close on merge.”
get_all – If True, return all the items, without pagination
per_page – Number of items to retrieve per request
page – ID of the page to return (starts with page 1)
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabListError – If the list could not be retrieved
List of issues
List the merge request commits.
get_all – If True, return all the items, without pagination
per_page – Number of items to retrieve per request
page – ID of the page to return (starts with page 1)
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabListError – If the list could not be retrieved
The list of commits
Accept the merge request.
merge_commit_message (str |None) – Commit message
should_remove_source_branch (bool |None) – If True, removes the sourcebranch
merge_when_pipeline_succeeds (bool |None) – Wait for the build to succeed,then merge
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabMRClosedError – If the merge failed
dict[str,Any]
refs/merge-requests/:iid/merge.
Attempt to rebase the source branch onto the target branch
List issues related to this merge request.”
get_all – If True, return all the items, without pagination
per_page – Number of items to retrieve per request
page – ID of the page to return (starts with page 1)
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabListError – If the list could not be retrieved
List of issues
Unapprove the merge request.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabMRApprovalError – If the unapproval failed
None
https://docs.gitlab.com/ee/api/merge_request_approvals.html#unapprove-merge-request
Bases:SaveMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetWithoutIdMixin
[ProjectMergeRequestApproval
],UpdateMixin
[ProjectMergeRequestApproval
]
Object Creation
Object update
Required attributes for object update:
approvals_required
gl (Gitlab)
parent (RESTObject |None)
Change MR-level allowed approvers and approver groups.
approvals_required (int) – The number of required approvals for this rule
approver_ids (list[int]|None) – User IDs that can approve MRs
approver_group_ids (list[int]|None) – Group IDs whose members can approve MRs
approval_rule_name (str)
approver_usernames (list[str]|None)
kwargs (Any)
GitlabAuthenticationError – If authentication is not correct
GitlabUpdateError – If the server failed to perform the request
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:CRUDMixin
[ProjectMergeRequestApprovalRule
]
Object Creation
Required attributes for object create:
name
approvals_required
Optional attributes for object create:
approval_project_rule_id
user_ids
group_ids
usernames
Object update
Required attributes for object update:
id
merge_request_iid
name
approvals_required
Optional attributes for object update:
user_ids
group_ids
usernames
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetWithoutIdMixin
[ProjectMergeRequestApprovalState
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:NoUpdateMixin
[ProjectMergeRequestAwardEmoji
]
Object Creation
Required attributes for object create:
name
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectMergeRequestDiff
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectMergeRequestDiscussion
],CreateMixin
[ProjectMergeRequestDiscussion
],UpdateMixin
[ProjectMergeRequestDiscussion
]
Object Creation
Required attributes for object create:
body
Optional attributes for object create:
created_at
position
Object update
Required attributes for object update:
resolved
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetMixin
[ProjectMergeRequestDiscussionNote
],CreateMixin
[ProjectMergeRequestDiscussionNote
],UpdateMixin
[ProjectMergeRequestDiscussionNote
],DeleteMixin
[ProjectMergeRequestDiscussionNote
]
Object Creation
Required attributes for object create:
body
Optional attributes for object create:
created_at
Object update
Required attributes for object update:
body
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,SaveMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:CRUDMixin
[ProjectMergeRequestDraftNote
]
Object Creation
Required attributes for object create:
note
Optional attributes for object create:
commit_id
in_reply_to_discussion_id
position
resolve_discussion
Object update
Optional attributes for object update:
position
gl (Gitlab)
parent (RESTObject |None)
Bases:CRUDMixin
[ProjectMergeRequest
]
Object listing filters
state
order_by
sort
milestone
view
labels
created_after
created_before
updated_after
updated_before
scope
iids
author_id
assignee_id
approver_ids
approved_by_ids
my_reaction_emoji
source_branch
target_branch
search
wip
Object Creation
Required attributes for object create:
source_branch
target_branch
title
Optional attributes for object create:
allow_collaboration
allow_maintainer_to_push
approvals_before_merge
assignee_id
assignee_ids
description
labels
milestone_id
remove_source_branch
reviewer_ids
squash
target_project_id
Object update
Optional attributes for object update:
target_branch
assignee_id
title
description
state_event
labels
milestone_id
remove_source_branch
discussion_locked
allow_maintainer_to_push
squash
reviewer_ids
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:NoUpdateMixin
[ProjectMergeRequestNoteAwardEmoji
]
Object Creation
Required attributes for object create:
name
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:CRUDMixin
[ProjectMergeRequestNote
]
Object Creation
Required attributes for object create:
body
Object update
Required attributes for object update:
body
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:CreateMixin
[ProjectMergeRequestPipeline
],ListMixin
[ProjectMergeRequestPipeline
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectMergeRequestResourceLabelEvent
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectMergeRequestResourceMilestoneEvent
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectMergeRequestResourceStateEvent
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[ProjectMergeRequestReviewerDetail
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[ProjectMergeRequestStatusCheck
]
Object Creation
Object update
Required attributes for object update:
sha
external_status_check_id
status
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectMergeRequestTemplate
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[ProjectMergeTrain
]
Object listing filters
scope
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:PromoteMixin
,SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
List issues related to this milestone.
get_all – If True, return all the items, without pagination
per_page – Number of items to retrieve per request
page – ID of the page to return (starts with page 1)
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabListError – If the list could not be retrieved
The list of issues
List the merge requests related to this milestone.
get_all – If True, return all the items, without pagination
per_page – Number of items to retrieve per request
page – ID of the page to return (starts with page 1)
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabListError – If the list could not be retrieved
The list of merge requests
Bases:CRUDMixin
[ProjectMilestone
]
Object listing filters
iids
state
search
Object Creation
Required attributes for object create:
title
Optional attributes for object create:
description
due_date
start_date
state_event
Object update
Optional attributes for object update:
title
description
due_date
start_date
state_event
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectNote
]
Object Creation
Required attributes for object create:
body
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:NotificationSettings
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:NotificationSettingsManager
Object Creation
Object update
Optional attributes for object update:
level
notification_email
new_note
new_issue
reopen_issue
close_issue
reassign_issue
new_merge_request
reopen_merge_request
close_merge_request
reassign_merge_request
merge_merge_request
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:DeleteMixin
[ProjectPackageFile
],ListMixin
[ProjectPackageFile
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ListMixin
[ProjectPackage
],GetMixin
[ProjectPackage
],DeleteMixin
[ProjectPackage
]
Object listing filters
order_by
sort
package_type
package_name
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[ProjectPackagePipeline
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,SaveMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[ProjectPackageProtectionRule
],CreateMixin
[ProjectPackageProtectionRule
],DeleteMixin
[ProjectPackageProtectionRule
],UpdateMixin
[ProjectPackageProtectionRule
]
Object Creation
Required attributes for object create:
package_name_pattern
package_type
minimum_access_level_for_push
Object update
Optional attributes for object update:
package_name_pattern
package_type
minimum_access_level_for_push
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RefreshMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:CRUDMixin
[ProjectPagesDomain
]
Object Creation
Required attributes for object create:
domain
Optional attributes for object create:
certificate
key
Object update
Optional attributes for object update:
certificate
key
gl (Gitlab)
parent (RESTObject |None)
Bases:DeleteMixin
[ProjectPages
],UpdateMixin
[ProjectPages
],GetWithoutIdMixin
[ProjectPages
]
Object Creation
Object update
Optional attributes for object update:
pages_unique_domain_enabled
pages_https_only
gl (Gitlab)
parent (RESTObject |None)
Bases:RefreshMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[ProjectPipelineBridge
]
Object listing filters
scope
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[ProjectPipelineJob
]
Object listing filters
scope
include_retried
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RetrieveMixin
[ProjectPipeline
],CreateMixin
[ProjectPipeline
],DeleteMixin
[ProjectPipeline
]
Object listing filters
scope
status
source
ref
sha
yaml_errors
name
username
order_by
sort
Object Creation
Required attributes for object create:
ref
Object update
gl (Gitlab)
parent (RESTObject |None)
Creates a new object.
GitlabAuthenticationError – If authentication is not correct
GitlabCreateError – If the server cannot perform the request
the data sent by the server
on a specific ref in a project
ref (str |None) – The branch or tag to check for the latest pipeline.Defaults to the default branch when not specified.
lazy (bool)
A Pipeline instance
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Trigger a new scheduled pipeline, which runs immediately.The next scheduled run of this pipeline is not affected.
Update the owner of a pipeline schedule.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabOwnershipError – If the request failed
None
Bases:CRUDMixin
[ProjectPipelineSchedule
]
Object Creation
Required attributes for object create:
description
ref
cron
Optional attributes for object create:
cron_timezone
active
Object update
Optional attributes for object update:
description
ref
cron
cron_timezone
active
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[ProjectPipelineSchedulePipeline
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:CreateMixin
[ProjectPipelineScheduleVariable
],UpdateMixin
[ProjectPipelineScheduleVariable
],DeleteMixin
[ProjectPipelineScheduleVariable
]
Object Creation
Required attributes for object create:
key
value
Object update
Required attributes for object update:
key
value
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetWithoutIdMixin
[ProjectPipelineTestReport
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetWithoutIdMixin
[ProjectPipelineTestReportSummary
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[ProjectPipelineVariable
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:CRUDMixin
[ProjectProtectedBranch
]
Object Creation
Required attributes for object create:
name
Optional attributes for object create:
push_access_level
merge_access_level
unprotect_access_level
allow_force_push
allowed_to_push
allowed_to_merge
allowed_to_unprotect
code_owner_approval_required
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectProtectedEnvironment
],CreateMixin
[ProjectProtectedEnvironment
],DeleteMixin
[ProjectProtectedEnvironment
]
Object Creation
Required attributes for object create:
name
deploy_access_levels
Optional attributes for object create:
required_approval_count
approval_rules
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:NoUpdateMixin
[ProjectProtectedTag
]
Object Creation
Required attributes for object create:
name
Optional attributes for object create:
create_access_level
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetWithoutIdMixin
[ProjectPullMirror
],UpdateMixin
[ProjectPullMirror
]
Object Creation
Object update
Optional attributes for object update:
url
gl (Gitlab)
parent (RESTObject |None)
Create a new object.
the data sent by the server
GitlabAuthenticationError – If authentication is not correct
GitlabCreateError – If the server cannot perform the request
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetWithoutIdMixin
[ProjectPushRules
],CreateMixin
[ProjectPushRules
],UpdateMixin
[ProjectPushRules
],DeleteMixin
[ProjectPushRules
]
Object Creation
Optional attributes for object create:
author_email_regex
branch_name_regex
commit_committer_check
commit_message_negative_regex
commit_message_regex
deny_delete_tag
file_name_regex
max_file_size
member_check
prevent_secrets
reject_unsigned_commits
Object update
Optional attributes for object update:
author_email_regex
branch_name_regex
commit_committer_check
commit_message_negative_regex
commit_message_regex
deny_delete_tag
file_name_regex
max_file_size
member_check
prevent_secrets
reject_unsigned_commits
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[ProjectRegistryProtectionRule
],CreateMixin
[ProjectRegistryProtectionRule
],UpdateMixin
[ProjectRegistryProtectionRule
]
Object Creation
Required attributes for object create:
repository_path_pattern
Optional attributes for object create:
minimum_access_level_for_push
minimum_access_level_for_delete
Object update
Optional attributes for object update:
repository_path_pattern
minimum_access_level_for_push
minimum_access_level_for_delete
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:DeleteMixin
[ProjectRegistryRepository
],ListMixin
[ProjectRegistryRepository
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[ProjectRegistryRepositoryProtectionRule
],CreateMixin
[ProjectRegistryRepositoryProtectionRule
],UpdateMixin
[ProjectRegistryRepositoryProtectionRule
]
Object Creation
Required attributes for object create:
repository_path_pattern
Optional attributes for object create:
minimum_access_level_for_push
minimum_access_level_for_delete
Object update
Optional attributes for object update:
repository_path_pattern
minimum_access_level_for_push
minimum_access_level_for_delete
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:DeleteMixin
[ProjectRegistryTag
],RetrieveMixin
[ProjectRegistryTag
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Delete Tag in bulk
name_regex_delete (str) – The regex of the name to delete. To delete alltags specify .*.
keep_n – The amount of latest tags of given name to keep.
name_regex_keep – The regex of the name to keep. This valueoverrides any matches from name_regex.
older_than – Tags to delete that are older than the given time,written in human readable form 1h, 1d, 1month.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabDeleteError – If the server cannot perform the request
None
Bases:SaveMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ObjectDeleteMixin
,SaveMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:CRUDMixin
[ProjectReleaseLink
]
Object Creation
Required attributes for object create:
name
url
Optional attributes for object create:
filepath
direct_asset_path
link_type
Object update
Optional attributes for object update:
name
url
filepath
direct_asset_path
link_type
gl (Gitlab)
parent (RESTObject |None)
Bases:CRUDMixin
[ProjectRelease
]
Object listing filters
order_by
sort
include_html_description
Object Creation
Required attributes for object create:
tag_name
Optional attributes for object create:
name
description
ref
assets
Object update
Optional attributes for object update:
name
description
milestones
released_at
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,SaveMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[ProjectRemoteMirror
],CreateMixin
[ProjectRemoteMirror
],UpdateMixin
[ProjectRemoteMirror
],DeleteMixin
[ProjectRemoteMirror
]
Object Creation
Required attributes for object create:
url
Optional attributes for object create:
enabled
only_protected_branches
Object update
Optional attributes for object update:
enabled
only_protected_branches
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectResourceGroup
],UpdateMixin
[ProjectResourceGroup
]
Object listing filters
order_by
sort
include_html_description
Object Creation
Object update
Optional attributes for object update:
process_mode
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[ProjectResourceGroupUpcomingJob
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:CreateMixin
[ProjectRunner
],DeleteMixin
[ProjectRunner
],ListMixin
[ProjectRunner
]
Object listing filters
scope
tag_list
Object Creation
Required attributes for object create:
runner_id
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Download the secure file.
streamed (bool) – If True the data will be processed by chunks ofchunk_size and each chunk is passed toaction fortreatment
iterator (bool) – If True directly return the underlying responseiterator
action (Callable[[bytes],Any]|None) – Callable responsible of dealing with chunk ofdata
chunk_size (int) – Size of each chunk
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabGetError – If the artifacts could not be retrieved
The artifacts ifstreamed is False, None otherwise.
bytes |Iterator[Any] | None
Bases:NoUpdateMixin
[ProjectSecureFile
]
Object Creation
Required attributes for object create:
name
file
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ProjectIntegration
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ProjectIntegrationManager
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:UserAgentDetailMixin
,SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Return the content of a snippet.
streamed (bool) – If True the data will be processed by chunks ofchunk_size and each chunk is passed toaction fortreatment.
iterator (bool) – If True directly return the underlying responseiterator
action (Callable[[...],Any]|None) – Callable responsible of dealing with chunk ofdata
chunk_size (int) – Size of each chunk
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabGetError – If the content could not be retrieved
The snippet content
bytes |Iterator[Any] | None
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:NoUpdateMixin
[ProjectSnippetAwardEmoji
]
Object Creation
Required attributes for object create:
name
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[ProjectSnippetDiscussion
],CreateMixin
[ProjectSnippetDiscussion
]
Object Creation
Required attributes for object create:
body
Optional attributes for object create:
created_at
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetMixin
[ProjectSnippetDiscussionNote
],CreateMixin
[ProjectSnippetDiscussionNote
],UpdateMixin
[ProjectSnippetDiscussionNote
],DeleteMixin
[ProjectSnippetDiscussionNote
]
Object Creation
Required attributes for object create:
body
Optional attributes for object create:
created_at
Object update
Required attributes for object update:
body
gl (Gitlab)
parent (RESTObject |None)
Bases:CRUDMixin
[ProjectSnippet
]
Object Creation
Required attributes for object create:
title
visibility
Optional attributes for object create:
description
content
Mutually exclusive attributes for object create:
files
file_name
Object update
Optional attributes for object update:
title
files
file_name
content
visibility
description
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:NoUpdateMixin
[ProjectSnippetNoteAwardEmoji
]
Object Creation
Required attributes for object create:
name
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:CRUDMixin
[ProjectSnippetNote
]
Object Creation
Required attributes for object create:
body
Object update
Required attributes for object update:
body
gl (Gitlab)
parent (RESTObject |None)
Bases:RefreshMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetWithoutIdMixin
[ProjectStorage
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:NoUpdateMixin
[ProjectTag
]
Object listing filters
order_by
sort
search
Object Creation
Required attributes for object create:
tag_name
ref
Optional attributes for object create:
message
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:CRUDMixin
[ProjectTrigger
]
Object Creation
Required attributes for object create:
description
Object update
Required attributes for object update:
description
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[ProjectUser
]
Object listing filters
search
skip_users
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:CRUDMixin
[ProjectVariable
]
Object Creation
Required attributes for object create:
key
value
Optional attributes for object create:
protected
variable_type
masked
environment_scope
Object update
Required attributes for object update:
key
value
Optional attributes for object update:
protected
variable_type
masked
environment_scope
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,UploadMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:CRUDMixin
[ProjectWiki
]
Object listing filters
with_content
Object Creation
Required attributes for object create:
title
content
Optional attributes for object create:
format
Object update
Optional attributes for object update:
title
content
format
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetMixin
[RegistryRepository
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:object
Delete merged branches.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabDeleteError – If the server failed to perform the request
None
Return an archive of the repository.
sha (str |None) – ID of the commit (default branch by default)
streamed (bool) – If True the data will be processed by chunks ofchunk_size and each chunk is passed toaction fortreatment
iterator (bool) – If True directly return the underlying responseiterator
action (Callable[[...],Any]|None) – Callable responsible of dealing with chunk ofdata
chunk_size (int) – Size of each chunk
format (str |None) – file format (tar.gz by default)
path (str |None) – The subpath of the repository to download (all files by default)
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabListError – If the server failed to perform the request
The binary data of the archive
bytes |Iterator[Any] | None
Return a file by blob SHA.
sha (str) – ID of the blob
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabGetError – If the server failed to perform the request
The blob content and metadata
dict[str,Any] |Response
Return a diff between two branches/commits.
from – Source branch/SHA
to (str) – Destination branch/SHA
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
from_ (str)
GitlabAuthenticationError – If authentication is not correct
GitlabGetError – If the server failed to perform the request
The diff
dict[str,Any] |Response
Return a list of contributors for the project.
get_all – If True, return all the items, without pagination
per_page – Number of items to retrieve per request
page – ID of the page to return (starts with page 1)
iterator – If set to True and no pagination option isdefined, return a generator instead of a list
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabGetError – If the server failed to perform the request
The contributors
GitlabList | list[dict[str,Any]]
Return a diff between two branches/commits.
refs (list[str]) – The refs to find the common ancestor of. Multiple refs can be passed.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabGetError – If the server failed to perform the request
The common ancestor commit (not a RESTObject)
dict[str,Any] |Response
Return the raw file contents for a blob.
sha (str) – ID of the blob
streamed (bool) – If True the data will be processed by chunks ofchunk_size and each chunk is passed toaction fortreatment
iterator (bool) – If True directly return the underlying responseiterator
action (Callable[[...],Any]|None) – Callable responsible of dealing with chunk ofdata
chunk_size (int) – Size of each chunk
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabGetError – If the server failed to perform the request
The blob content if streamed is False, None otherwise
bytes |Iterator[Any] | None
Return a list of files in the repository.
path (str) – Path of the top folder (/ by default)
ref (str) – Reference to a commit or branch
recursive (bool) – Whether to get the tree recursively
get_all – If True, return all the items, without pagination
per_page – Number of items to retrieve per request
page – ID of the page to return (starts with page 1)
iterator – If set to True and no pagination option isdefined, return a generator instead of a list
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabGetError – If the server failed to perform the request
The representation of the tree
GitlabList | list[dict[str,Any]]
Update a project submodule
submodule (str) – Full path to the submodule
branch (str) – Name of the branch to commit into
commit_sha (str) – Full commit SHA to update the submodule to
commit_message – Commit message. If no message is provided, adefault one will be set (optional)
kwargs (Any)
GitlabAuthenticationError – If authentication is not correct
GitlabPutError – If the submodule could not be updated
dict[str,Any] |Response
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Object listing filters
scope
type
status
paused
tag_list
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Object listing filters
status
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Object listing filters
scope
type
status
paused
tag_list
Object Creation
Required attributes for object create:
token
Optional attributes for object create:
description
info
active
locked
run_untagged
tag_list
access_level
maximum_timeout
Object update
Optional attributes for object update:
description
active
tag_list
run_untagged
locked
access_level
maximum_timeout
gl (Gitlab)
parent (RESTObject |None)
List all the runners.
scope (str |None) – The scope of runners to show, one of: specific,shared, active, paused, online
get_all – If True, return all the items, without pagination
per_page – Number of items to retrieve per request
page – ID of the page to return (starts with page 1)
iterator – If set to True and no pagination option isdefined, return a generator instead of a list
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabListError – If the server failed to perform the request
A list of runners matching the scope.
list[Runner]
Validates authentication credentials for a registered Runner.
token (str) – The runner’s authentication token
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabVerifyError – If the server failed to verify the token
None
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[SharedProject
]
Object listing filters
archived
visibility
order_by
sort
search
simple
starred
with_issues_enabled
with_merge_requests_enabled
min_access_level
with_custom_attributes
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTManager
[RESTObject
]
Manager for the Sidekiq methods.
This manager doesn’t actually manage objects but provides helper functionfor the sidekiq metrics API.
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:UserAgentDetailMixin
,SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Return the content of a snippet.
streamed (bool) – If True the data will be processed by chunks ofchunk_size and each chunk is passed toaction fortreatment.
iterator (bool) – If True directly return the underlying responseiterator
action (Callable[[...],Any]|None) – Callable responsible of dealing with chunk ofdata
chunk_size (int) – Size of each chunk
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabGetError – If the content could not be retrieved
The snippet content
bytes |Iterator[Any] | None
Object Creation
Required attributes for object create:
title
Optional attributes for object create:
description
content
visibility
Mutually exclusive attributes for object create:
files
file_name
Object update
Optional attributes for object update:
title
files
file_name
content
visibility
description
gl (Gitlab)
parent (RESTObject |None)
List all snippets.
get_all – If True, return all the items, without pagination
per_page – Number of items to retrieve per request
page – ID of the page to return (starts with page 1)
iterator (bool) – If set to True and no pagination option isdefined, return a generator instead of a list
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabListError – If the list could not be retrieved
A generator for the snippets list
RESTObjectList[Snippet] | list[Snippet]
List all public snippets.
get_all – If True, return all the items, without pagination
per_page – Number of items to retrieve per request
page – ID of the page to return (starts with page 1)
iterator (bool) – If set to True and no pagination option isdefined, return a generator instead of a list
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabListError – If the list could not be retrieved
The list of snippets, or a generator ifiterator is True
RESTObjectList[Snippet] | list[Snippet]
List all public snippets.
get_all – If True, return all the items, without pagination
per_page – Number of items to retrieve per request
page – ID of the page to return (starts with page 1)
iterator (bool) – If set to True and no pagination option isdefined, return a generator instead of a list
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabListError – If the list could not be retrieved
The list of snippets, or a generator ifiterator is True
RESTObjectList[Snippet] | list[Snippet]
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[StarredProject
]
Object listing filters
archived
membership
min_access_level
order_by
owned
search
simple
sort
starred
statistics
visibility
with_custom_attributes
with_issues_enabled
with_merge_requests_enabled
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[Todo
],DeleteMixin
[Todo
]
Object listing filters
action
author_id
project_id
state
type
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Mark all the todos as done.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabTodoError – If the server failed to perform the request
The number of todos marked done
None
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Object Creation
Required attributes for object create:
name
Optional attributes for object create:
avatar
description
title
Object update
Optional attributes for object update:
avatar
description
name
gl (Gitlab)
parent (RESTObject |None)
Merge two topics, assigning all projects to the target topic.
source_topic_id (int |str) – ID of source project topic
target_topic_id (int |str) – ID of target project topic
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabTopicMergeError – If the merge failed
The merged topic data (not a RESTObject)
dict[str,Any]
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Block the user.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabBlockError – If the user could not be blocked
Whether the user status has been changed
bool | None
Unblock the user.
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
GitlabAuthenticationError – If authentication is not correct
GitlabUnblockError – If the user could not be unblocked
Whether the user status has been changed
bool | None
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[UserActivities
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[UserContributedProject
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[UserCustomAttribute
],SetMixin
[UserCustomAttribute
],DeleteMixin
[UserCustomAttribute
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[UserEmail
],CreateMixin
[UserEmail
],DeleteMixin
[UserEmail
]
Object Creation
Required attributes for object create:
email
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:Event
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:EventManager
Object listing filters
action
target_type
before
after
sort
scope
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[UserGPGKey
],CreateMixin
[UserGPGKey
],DeleteMixin
[UserGPGKey
]
Object Creation
Required attributes for object create:
key
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:DeleteMixin
[User
]
Manager for user identities.
This manager does not actually manage objects but enablesfunctionality for deletion of user identities by provider.
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:NoUpdateMixin
[UserImpersonationToken
]
Object listing filters
state
Object Creation
Required attributes for object create:
name
scopes
Optional attributes for object create:
expires_at
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[UserKey
],CreateMixin
[UserKey
],DeleteMixin
[UserKey
]
Object Creation
Required attributes for object create:
title
key
Object update
gl (Gitlab)
parent (RESTObject |None)
Object listing filters
active
blocked
username
extern_uid
provider
external
search
custom_attributes
status
two_factor
Object Creation
Optional attributes for object create:
email
username
name
password
reset_password
skype
linkedin
twitter
projects_limit
extern_uid
provider
bio
admin
can_create_group
website_url
skip_confirmation
external
organization
location
avatar
public_email
private_profile
color_scheme_id
theme_id
Object update
Required attributes for object update:
email
username
name
Optional attributes for object update:
password
skype
linkedin
twitter
projects_limit
extern_uid
provider
bio
admin
can_create_group
website_url
skip_reconfirmation
external
organization
location
avatar
public_email
private_profile
color_scheme_id
theme_id
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:RetrieveMixin
[UserMembership
]
Object listing filters
type
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:CreateMixin
[UserPersonalAccessToken
]
Object Creation
Required attributes for object create:
name
scopes
Optional attributes for object create:
expires_at
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:ListMixin
[UserProject
],CreateMixin
[UserProject
]
Object listing filters
archived
visibility
order_by
sort
search
simple
owned
membership
starred
statistics
with_issues_enabled
with_merge_requests_enabled
with_custom_attributes
with_programming_language
wiki_checksum_failed
repository_checksum_failed
min_access_level
id_after
id_before
Object Creation
Required attributes for object create:
name
Optional attributes for object create:
default_branch
issues_enabled
wall_enabled
merge_requests_enabled
wiki_enabled
snippets_enabled
squash_option
public
visibility
description
builds_enabled
public_builds
import_url
only_allow_merge_if_build_succeeds
Object update
gl (Gitlab)
parent (RESTObject |None)
Retrieve a list of objects.
get_all – If True, return all the items, without pagination
per_page – Number of items to retrieve per request
page – ID of the page to return (starts with page 1)
iterator (bool) – If set to True and no pagination option isdefined, return a generator instead of a list
**kwargs (Any) – Extra options to send to the server (e.g. sudo)
The list of objects, or a generator ifiterator is True
GitlabAuthenticationError – If authentication is not correct
GitlabListError – If the server cannot perform the request
Bases:RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Bases:GetWithoutIdMixin
[UserStatus
]
Object Creation
Object update
gl (Gitlab)
parent (RESTObject |None)
Bases:SaveMixin
,ObjectDeleteMixin
,RESTObject
manager (RESTManager[Any])
attrs (dict[str,Any])
created_from_list (bool)
lazy (bool)
Object Creation
Required attributes for object create:
key
value
Optional attributes for object create:
protected
variable_type
masked
Object update
Required attributes for object update:
key
value
Optional attributes for object update:
protected
variable_type
masked
gl (Gitlab)
parent (RESTObject |None)
Decorator for overloaded functions/methods.
In a stub file, place two or more stub definitions for the samefunction in a row, each decorated with @overload.
For example:
@overloaddefutf8(value:None)->None:...@overloaddefutf8(value:bytes)->bytes:...@overloaddefutf8(value:str)->bytes:...
In a non-stub file (i.e. a regular .py file), do the same butfollow it with an implementation. The implementation shouldnotbe decorated with @overload:
@overloaddefutf8(value:None)->None:...@overloaddefutf8(value:bytes)->bytes:...@overloaddefutf8(value:str)->bytes:...defutf8(value):...# implementation goes here
The overloads for a function can be retrieved at runtime using theget_overloads() function.
Any
Application
ApplicationAppearance
ApplicationAppearanceManager
ApplicationManager
ApplicationSettings
ApplicationSettingsManager
ApplicationStatistics
ApplicationStatisticsManager
AuditEvent
AuditEventManager
BroadcastMessage
BroadcastMessageManager
BulkImport
BulkImportAllEntity
BulkImportAllEntityManager
BulkImportEntity
BulkImportEntityManager
BulkImportManager
CiLint
CiLintManager
CurrentUser
CurrentUserEmail
CurrentUserEmailManager
CurrentUserGPGKey
CurrentUserGPGKeyManager
CurrentUserKey
CurrentUserKeyManager
CurrentUserManager
CurrentUserRunner
CurrentUserRunnerManager
CurrentUserStatus
CurrentUserStatusManager
DeployKey
DeployKeyManager
DeployToken
DeployTokenManager
Dockerfile
DockerfileManager
Event
EventManager
Feature
FeatureManager
GenericPackage
GenericPackageManager
GeoNode
GeoNodeManager
Gitignore
GitignoreManager
Gitlabciyml
GitlabciymlManager
Group
Group.access_tokens
Group.accessrequests
Group.approval_rules
Group.audit_events
Group.badges
Group.billable_members
Group.boards
Group.clusters
Group.customattributes
Group.deploytokens
Group.descendant_groups
Group.epics
Group.exports
Group.hooks
Group.imports
Group.invitations
Group.issues
Group.issues_statistics
Group.iterations
Group.labels
Group.ldap_group_links
Group.ldap_sync()
Group.member_roles
Group.members
Group.members_all
Group.mergerequests
Group.milestones
Group.notificationsettings
Group.packages
Group.projects
Group.protectedbranches
Group.pushrules
Group.registry_repositories
Group.restore()
Group.runners
Group.saml_group_links
Group.search()
Group.service_accounts
Group.share()
Group.shared_projects
Group.subgroups
Group.transfer()
Group.transfer_project()
Group.unshare()
Group.variables
Group.wikis
GroupAccessRequest
GroupAccessRequestManager
GroupAccessToken
GroupAccessTokenManager
GroupApprovalRule
GroupApprovalRuleManager
GroupAuditEvent
GroupAuditEventManager
GroupBadge
GroupBadgeManager
GroupBillableMember
GroupBillableMemberManager
GroupBillableMemberMembership
GroupBillableMemberMembershipManager
GroupBoard
GroupBoardList
GroupBoardListManager
GroupBoardManager
GroupCluster
GroupClusterManager
GroupCustomAttribute
GroupCustomAttributeManager
GroupDeployToken
GroupDeployTokenManager
GroupDescendantGroup
GroupDescendantGroupManager
GroupEpic
GroupEpicAwardEmoji
GroupEpicAwardEmojiManager
GroupEpicDiscussionNote
GroupEpicDiscussionNoteManager
GroupEpicIssue
GroupEpicIssueManager
GroupEpicManager
GroupEpicNote
GroupEpicNoteAwardEmoji
GroupEpicNoteAwardEmojiManager
GroupEpicNoteManager
GroupEpicResourceLabelEvent
GroupEpicResourceLabelEventManager
GroupExport
GroupExportManager
GroupHook
GroupHookManager
GroupImport
GroupImportManager
GroupInvitation
GroupInvitationManager
GroupIssue
GroupIssueManager
GroupIssuesStatistics
GroupIssuesStatisticsManager
GroupIteration
GroupIterationManager
GroupLDAPGroupLink
GroupLDAPGroupLinkManager
GroupLabel
GroupLabelManager
GroupManager
GroupMember
GroupMemberAll
GroupMemberAllManager
GroupMemberManager
GroupMemberRole
GroupMemberRoleManager
GroupMergeRequest
GroupMergeRequestManager
GroupMilestone
GroupMilestoneManager
GroupNotificationSettings
GroupNotificationSettingsManager
GroupPackage
GroupPackageManager
GroupProject
GroupProjectManager
GroupPushRules
GroupPushRulesManager
GroupRegistryRepositoryManager
GroupRunner
GroupRunnerManager
GroupSAMLGroupLink
GroupSAMLGroupLinkManager
GroupServiceAccount
GroupServiceAccountManager
GroupSubgroup
GroupSubgroupManager
GroupVariable
GroupVariableManager
GroupWiki
GroupWikiManager
Hook
HookManager
Issue
IssueManager
IssuesStatistics
IssuesStatisticsManager
Key
KeyManager
LDAPGroup
LDAPGroupManager
License
LicenseManager
MemberRole
MemberRoleManager
MergeRequest
MergeRequestManager
Namespace
NamespaceManager
NotificationSettings
NotificationSettingsManager
PagesDomain
PagesDomainManager
PersonalAccessToken
PersonalAccessTokenManager
Project
Project.access_tokens
Project.accessrequests
Project.additionalstatistics
Project.approvalrules
Project.approvals
Project.archive()
Project.artifacts
Project.audit_events
Project.badges
Project.boards
Project.branches
Project.ci_lint
Project.cluster_agents
Project.clusters
Project.commits
Project.create_fork_relation()
Project.customattributes
Project.delete_fork_relation()
Project.deployments
Project.deploytokens
Project.dockerfile_templates
Project.environments
Project.events
Project.exports
Project.external_status_checks
Project.files
Project.forks
Project.generic_packages
Project.gitignore_templates
Project.gitlabciyml_templates
Project.groups
Project.hooks
Project.housekeeping()
Project.imports
Project.integrations
Project.invitations
Project.issue_templates
Project.issues
Project.issues_statistics
Project.iterations
Project.job_token_scope
Project.jobs
Project.keys
Project.labels
Project.languages()
Project.license_templates
Project.members
Project.members_all
Project.merge_request_templates
Project.merge_trains
Project.mergerequests
Project.milestones
Project.mirror_pull()
Project.mirror_pull_details()
Project.notes
Project.notificationsettings
Project.package_protection_rules
Project.packages
Project.pages
Project.pagesdomains
Project.pipelines
Project.pipelineschedules
Project.protected_environments
Project.protectedbranches
Project.protectedtags
Project.pull_mirror
Project.pushrules
Project.registry_protection_repository_rules
Project.registry_protection_rules
Project.releases
Project.remote_mirrors
Project.repositories
Project.resource_groups
Project.restore()
Project.runners
Project.search()
Project.secure_files
Project.services
Project.share()
Project.snapshot()
Project.snippets
Project.star()
Project.storage
Project.tags
Project.transfer()
Project.trigger_pipeline()
Project.triggers
Project.unarchive()
Project.unshare()
Project.unstar()
Project.users
Project.variables
Project.wikis
ProjectAccessRequest
ProjectAccessRequestManager
ProjectAccessToken
ProjectAccessTokenManager
ProjectAdditionalStatistics
ProjectAdditionalStatisticsManager
ProjectApproval
ProjectApprovalManager
ProjectApprovalRule
ProjectApprovalRuleManager
ProjectArtifact
ProjectArtifactManager
ProjectAudit
ProjectAuditEvent
ProjectAuditEventManager
ProjectAuditManager
ProjectBadge
ProjectBadgeManager
ProjectBoard
ProjectBoardList
ProjectBoardListManager
ProjectBoardManager
ProjectBranch
ProjectBranchManager
ProjectCiLint
ProjectCiLintManager
ProjectCluster
ProjectClusterAgent
ProjectClusterAgentManager
ProjectClusterManager
ProjectCommit
ProjectCommitComment
ProjectCommitCommentManager
ProjectCommitDiscussion
ProjectCommitDiscussionManager
ProjectCommitDiscussionNote
ProjectCommitDiscussionNoteManager
ProjectCommitManager
ProjectCommitStatus
ProjectCommitStatusManager
ProjectCustomAttribute
ProjectCustomAttributeManager
ProjectDeployToken
ProjectDeployTokenManager
ProjectDeployment
ProjectDeploymentManager
ProjectDeploymentMergeRequest
ProjectDeploymentMergeRequestManager
ProjectDockerfileTemplate
ProjectDockerfileTemplateManager
ProjectEnvironment
ProjectEnvironmentManager
ProjectEvent
ProjectEventManager
ProjectExport
ProjectExportManager
ProjectExternalStatusCheck
ProjectExternalStatusCheckManager
ProjectFile
ProjectFileManager
ProjectFork
ProjectForkManager
ProjectGitignoreTemplate
ProjectGitignoreTemplateManager
ProjectGitlabciymlTemplate
ProjectGitlabciymlTemplateManager
ProjectHook
ProjectHookManager
ProjectImport
ProjectImportManager
ProjectIntegration
ProjectIntegrationManager
ProjectInvitation
ProjectInvitationManager
ProjectIssue
ProjectIssue.awardemojis
ProjectIssue.closed_by()
ProjectIssue.discussions
ProjectIssue.links
ProjectIssue.move()
ProjectIssue.notes
ProjectIssue.related_merge_requests()
ProjectIssue.reorder()
ProjectIssue.resource_iteration_events
ProjectIssue.resource_weight_events
ProjectIssue.resourcelabelevents
ProjectIssue.resourcemilestoneevents
ProjectIssue.resourcestateevents
ProjectIssueAwardEmoji
ProjectIssueAwardEmojiManager
ProjectIssueDiscussion
ProjectIssueDiscussionManager
ProjectIssueDiscussionNote
ProjectIssueDiscussionNoteManager
ProjectIssueLink
ProjectIssueLinkManager
ProjectIssueManager
ProjectIssueNote
ProjectIssueNoteAwardEmoji
ProjectIssueNoteAwardEmojiManager
ProjectIssueNoteManager
ProjectIssueResourceIterationEvent
ProjectIssueResourceIterationEventManager
ProjectIssueResourceLabelEvent
ProjectIssueResourceLabelEventManager
ProjectIssueResourceMilestoneEvent
ProjectIssueResourceMilestoneEventManager
ProjectIssueResourceStateEvent
ProjectIssueResourceStateEventManager
ProjectIssueResourceWeightEvent
ProjectIssueResourceWeightEventManager
ProjectIssueTemplate
ProjectIssueTemplateManager
ProjectIssuesStatistics
ProjectIssuesStatisticsManager
ProjectIterationManager
ProjectJob
ProjectJobManager
ProjectJobTokenScope
ProjectJobTokenScopeManager
ProjectKey
ProjectKeyManager
ProjectLabel
ProjectLabelManager
ProjectLicenseTemplate
ProjectLicenseTemplateManager
ProjectManager
ProjectMember
ProjectMemberAll
ProjectMemberAllManager
ProjectMemberManager
ProjectMergeRequest
ProjectMergeRequest.approval_rules
ProjectMergeRequest.approval_state
ProjectMergeRequest.approvals
ProjectMergeRequest.approve()
ProjectMergeRequest.awardemojis
ProjectMergeRequest.cancel_merge_when_pipeline_succeeds()
ProjectMergeRequest.changes()
ProjectMergeRequest.closes_issues()
ProjectMergeRequest.commits()
ProjectMergeRequest.diffs
ProjectMergeRequest.discussions
ProjectMergeRequest.draft_notes
ProjectMergeRequest.merge()
ProjectMergeRequest.merge_ref()
ProjectMergeRequest.notes
ProjectMergeRequest.pipelines
ProjectMergeRequest.rebase()
ProjectMergeRequest.related_issues()
ProjectMergeRequest.reset_approvals()
ProjectMergeRequest.resourcelabelevents
ProjectMergeRequest.resourcemilestoneevents
ProjectMergeRequest.resourcestateevents
ProjectMergeRequest.reviewer_details
ProjectMergeRequest.status_checks
ProjectMergeRequest.unapprove()
ProjectMergeRequestApproval
ProjectMergeRequestApprovalManager
ProjectMergeRequestApprovalRule
ProjectMergeRequestApprovalRuleManager
ProjectMergeRequestApprovalState
ProjectMergeRequestApprovalStateManager
ProjectMergeRequestAwardEmoji
ProjectMergeRequestAwardEmojiManager
ProjectMergeRequestDiff
ProjectMergeRequestDiffManager
ProjectMergeRequestDiscussion
ProjectMergeRequestDiscussionManager
ProjectMergeRequestDiscussionNote
ProjectMergeRequestDiscussionNoteManager
ProjectMergeRequestDraftNote
ProjectMergeRequestDraftNoteManager
ProjectMergeRequestManager
ProjectMergeRequestNote
ProjectMergeRequestNoteAwardEmoji
ProjectMergeRequestNoteAwardEmojiManager
ProjectMergeRequestNoteManager
ProjectMergeRequestPipeline
ProjectMergeRequestPipelineManager
ProjectMergeRequestResourceLabelEvent
ProjectMergeRequestResourceLabelEventManager
ProjectMergeRequestResourceMilestoneEvent
ProjectMergeRequestResourceMilestoneEventManager
ProjectMergeRequestResourceStateEvent
ProjectMergeRequestResourceStateEventManager
ProjectMergeRequestReviewerDetail
ProjectMergeRequestReviewerDetailManager
ProjectMergeRequestStatusCheck
ProjectMergeRequestStatusCheckManager
ProjectMergeRequestTemplate
ProjectMergeRequestTemplateManager
ProjectMergeTrain
ProjectMergeTrainManager
ProjectMilestone
ProjectMilestoneManager
ProjectNote
ProjectNoteManager
ProjectNotificationSettings
ProjectNotificationSettingsManager
ProjectPackage
ProjectPackageFile
ProjectPackageFileManager
ProjectPackageManager
ProjectPackagePipeline
ProjectPackagePipelineManager
ProjectPackageProtectionRule
ProjectPackageProtectionRuleManager
ProjectPages
ProjectPagesDomain
ProjectPagesDomainManager
ProjectPagesManager
ProjectPipeline
ProjectPipelineBridge
ProjectPipelineBridgeManager
ProjectPipelineJob
ProjectPipelineJobManager
ProjectPipelineManager
ProjectPipelineSchedule
ProjectPipelineScheduleManager
ProjectPipelineSchedulePipeline
ProjectPipelineSchedulePipelineManager
ProjectPipelineScheduleVariable
ProjectPipelineScheduleVariableManager
ProjectPipelineTestReport
ProjectPipelineTestReportManager
ProjectPipelineTestReportSummary
ProjectPipelineTestReportSummaryManager
ProjectPipelineVariable
ProjectPipelineVariableManager
ProjectProtectedBranch
ProjectProtectedBranchManager
ProjectProtectedEnvironment
ProjectProtectedEnvironmentManager
ProjectProtectedTag
ProjectProtectedTagManager
ProjectPullMirror
ProjectPullMirrorManager
ProjectPushRules
ProjectPushRulesManager
ProjectRegistryProtectionRule
ProjectRegistryProtectionRuleManager
ProjectRegistryRepository
ProjectRegistryRepositoryManager
ProjectRegistryRepositoryProtectionRule
ProjectRegistryRepositoryProtectionRuleManager
ProjectRegistryTag
ProjectRegistryTagManager
ProjectRelease
ProjectReleaseLink
ProjectReleaseLinkManager
ProjectReleaseManager
ProjectRemoteMirror
ProjectRemoteMirrorManager
ProjectResourceGroup
ProjectResourceGroupManager
ProjectResourceGroupUpcomingJob
ProjectResourceGroupUpcomingJobManager
ProjectRunner
ProjectRunnerManager
ProjectSecureFile
ProjectSecureFileManager
ProjectService
ProjectServiceManager
ProjectSnippet
ProjectSnippetAwardEmoji
ProjectSnippetAwardEmojiManager
ProjectSnippetDiscussion
ProjectSnippetDiscussionManager
ProjectSnippetDiscussionNote
ProjectSnippetDiscussionNoteManager
ProjectSnippetManager
ProjectSnippetNote
ProjectSnippetNoteAwardEmoji
ProjectSnippetNoteAwardEmojiManager
ProjectSnippetNoteManager
ProjectStorage
ProjectStorageManager
ProjectTag
ProjectTagManager
ProjectTrigger
ProjectTriggerManager
ProjectUser
ProjectUserManager
ProjectVariable
ProjectVariableManager
ProjectWiki
ProjectWikiManager
RegistryRepository
RegistryRepositoryManager
RepositoryMixin
RepositoryMixin.delete_merged_branches()
RepositoryMixin.repository_archive()
RepositoryMixin.repository_blob()
RepositoryMixin.repository_compare()
RepositoryMixin.repository_contributors()
RepositoryMixin.repository_merge_base()
RepositoryMixin.repository_raw_blob()
RepositoryMixin.repository_tree()
RepositoryMixin.update_submodule()
Runner
RunnerAll
RunnerAllManager
RunnerJob
RunnerJobManager
RunnerManager
SharedProject
SharedProjectManager
SidekiqManager
Snippet
SnippetManager
StarredProject
StarredProjectManager
Todo
TodoManager
Topic
TopicManager
User
User.activate()
User.approve()
User.ban()
User.block()
User.contributed_projects
User.customattributes
User.deactivate()
User.emails
User.events
User.follow()
User.followers_users
User.following_users
User.gpgkeys
User.identityproviders
User.impersonationtokens
User.keys
User.memberships
User.personal_access_tokens
User.projects
User.reject()
User.starred_projects
User.status
User.unban()
User.unblock()
User.unfollow()
UserActivities
UserActivitiesManager
UserContributedProject
UserContributedProjectManager
UserCustomAttribute
UserCustomAttributeManager
UserEmail
UserEmailManager
UserEvent
UserEventManager
UserGPGKey
UserGPGKeyManager
UserIdentityProviderManager
UserImpersonationToken
UserImpersonationTokenManager
UserKey
UserKeyManager
UserManager
UserMembership
UserMembershipManager
UserPersonalAccessToken
UserPersonalAccessTokenManager
UserProject
UserProjectManager
UserStatus
UserStatusManager
Variable
VariableManager
overload()