Skip to content

UserProject missing attributes/functions compared to Project #2748

Answered by JohnVillalovos
rickykwanix asked this question in Q&A
Discussion options

You must be logged in to vote

Having the extra API calls to gl.projects.get(<project_id>) the projects so that I can access those missing attributes is not ideal.

You might try: https://python-gitlab.readthedocs.io/en/main/api-usage.html#lazy-objects

project = gl.projects.get(<project_id>, lazy=True)
project.pipelineschedules.list(scope="active")

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by JohnVillalovos
Comment options

You must be logged in to vote
1 reply
@JohnVillalovos
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2747 on December 22, 2023 17:44.