week06
This commit is contained in:
21
env/lib/python3.12/site-packages/gitlab/v4/objects/applications.py
vendored
Normal file
21
env/lib/python3.12/site-packages/gitlab/v4/objects/applications.py
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
from gitlab.base import RESTManager, RESTObject
|
||||
from gitlab.mixins import CreateMixin, DeleteMixin, ListMixin, ObjectDeleteMixin
|
||||
from gitlab.types import RequiredOptional
|
||||
|
||||
__all__ = [
|
||||
"Application",
|
||||
"ApplicationManager",
|
||||
]
|
||||
|
||||
|
||||
class Application(ObjectDeleteMixin, RESTObject):
|
||||
_url = "/applications"
|
||||
_repr_attr = "name"
|
||||
|
||||
|
||||
class ApplicationManager(ListMixin, CreateMixin, DeleteMixin, RESTManager):
|
||||
_path = "/applications"
|
||||
_obj_cls = Application
|
||||
_create_attrs = RequiredOptional(
|
||||
required=("name", "redirect_uri", "scopes"), optional=("confidential",)
|
||||
)
|
Reference in New Issue
Block a user