mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
34 lines
1.1 KiB
Python
34 lines
1.1 KiB
Python
from GithubObject import *
|
|
|
|
from NamedUser import NamedUser
|
|
from Event import Event
|
|
|
|
Organization = GithubObject(
|
|
"Organization",
|
|
BaseUrl( lambda obj: "/orgs/" + obj.login ),
|
|
Identity( lambda obj: obj.login ),
|
|
InternalSimpleAttributes(
|
|
"login", "id", "url", "avatar_url", "name", "company", "blog",
|
|
"location", "email", "public_repos", "public_gists", "followers",
|
|
"following", "html_url", "created_at", "type", "gravatar_id",
|
|
# Seen only by owners
|
|
"disk_usage", "collaborators", "billing_email", "plan", "private_gists",
|
|
"total_private_repos", "owned_private_repos",
|
|
),
|
|
Editable( [], [ "billing_email", "blog", "company", "email", "location", "name" ] ),
|
|
ExternalListOfObjects( "public_members", "public_member", NamedUser,
|
|
ListGetable( [], [] ),
|
|
ElementAddable(),
|
|
ElementRemovable(),
|
|
ElementHasable()
|
|
),
|
|
ExternalListOfObjects( "members", "member", NamedUser,
|
|
ListGetable( [], [] ),
|
|
ElementRemovable(),
|
|
ElementHasable()
|
|
),
|
|
ExternalListOfObjects( "events", "event", Event,
|
|
ListGetable( [], [] )
|
|
),
|
|
)
|