def __init__(self): Operation.__init__( self, { "review_id": int, "chain_type": set(["issue", "note"]), "commit_context": Optional({ "commit_id": int, "offset": int, "count": int }), "file_context": Optional({ "origin": set(["old", "new"]), "parent_id": Optional(int), "child_id": int, "file_id": int, "old_sha1": Optional(str), "new_sha1": Optional(str), "offset": int, "count": int }), "text": str })
def __init__(self): Operation.__init__( self, { "review": Review, "new_upstream": Optional(str), "branch": Optional(str) })
def __init__(self): Operation.__init__( self, { "review": Review, "chain_type": set(["issue", "note"]), "commit_context": Optional({ "commit": Commit, "offset": NonNegativeInteger, "count": PositiveInteger }), "file_context": Optional({ "origin": set(["old", "new"]), "parent": Optional(Commit), "child": Commit, "file": File, "offset": PositiveInteger, "count": PositiveInteger }), "text": str })
def __init__(self): Operation.__init__( self, { "review_id": int, "new_summary": Optional(str), "new_description": Optional(str), "new_owners": Optional([str]) })
def __init__(self, perform): Operation.__init__( self, { "extension_name": str, "author_name": Optional(str), "version": Optional(str), "universal": Optional(bool) }) self.perform = perform
def __init__(self): Operation.__init__( self, { "review_id": int, "new_head_sha1": str, "new_upstream_sha1": Optional(str), "branch": Optional(str), "new_trackedbranch": Optional(str) })
def __init__(self): Operation.__init__( self, { "filter_type": set(["reviewer", "watcher", "ignored"]), "path": str, "delegates": [str], "repository_id": Optional(int), "repository_name": Optional(str), "replaced_filter_id": Optional(int) })
def __init__(self): Operation.__init__( self, { "single": Optional({ "repository_name": str, "path": str }), "multiple": Optional([int]), "user_id": Optional(int) })
def __init__(self): super(CheckConflictsStatus, self).__init__({ "review_id": int, "merge_sha1": Optional(str), "new_head_sha1": Optional(str), "new_upstream_sha1": Optional(str) })
def __init__(self): Operation.__init__( self, { "subject": typechecker.User, "extension": typechecker.Extension, "repository": typechecker.Repository, "filterhook_name": str, "path": str, "data": Optional(str), "replaced_filter_id": Optional(int) })
def __init__(self): Operation.__init__( self, { "review_id": int, "filters": [{ "type": set(["reviewer", "watcher"]), "user_names": Optional([str]), "user_ids": Optional([int]), "paths": Optional([str]), "file_ids": Optional([int]) }] })
def __init__(self): super(SaveSettings, self).__init__({ "subject": Optional(User), "repository": Optional(Repository), "filter_id": Optional(int), "settings": [{ "item": str, "value": Optional(set([bool, int, str])) }], "defaults": Optional(bool) })
def __init__(self): Operation.__init__(self, { "repository_name": str, "remote": str, "branch": str, "upstream": Optional(str) }, accept_anonymous_user=True)
def __init__(self): Operation.__init__( self, { "name": str, "path": str, "remote": Optional({ "url": str, "branch": str }) })
def __init__(self): Operation.__init__( self, { "repository_id": int, "source_location": str, "source_name": str, "target_name": str, "users": [str], "forced": Optional(bool) })
def __init__(self): super(RegisterUser, self).__init__( { "req": Request, "username": str, "fullname": str, "email": str, "password": Optional(str), "external": Optional({ "provider": set(auth.PROVIDERS.keys()), "account": str, "token": str }) }, accept_anonymous_user=True)
def __init__(self): Operation.__init__( self, { "name": RestrictedString(allowed=lambda ch: ch != "/", minlength=1, maxlength=64, ui_name="short name"), "path": RestrictedString(minlength=1, ui_name="path"), "mirror": Optional({ "remote_url": RestrictedString(maxlength=256, ui_name="source repository"), "remote_branch": str, "local_branch": str }) })
def __init__(self): Operation.__init__(self, { "values": [set(["users", "paths"])], "review_id": Optional(int), "changeset_ids": Optional([int]) })
def __init__(self): Operation.__init__(self, { "extension_name": str, "author_name": Optional(str) })
def __init__(self): Operation.__init__( self, { "repository": Repository, "branch": str, "summary": str, "commit_ids": Optional([int]), "commit_sha1s": Optional([str]), "applyfilters": Optional(bool), "applyparentfilters": Optional(bool), "reviewfilters": Optional([{ "username": str, "type": set(["reviewer", "watcher"]), "path": str }]), "recipientfilters": Optional({ "mode": set(["opt-in", "opt-out"]), "included": Optional([str]), "excluded": Optional([str]) }), "description": Optional(str), "frombranch": Optional(str), "trackedbranch": Optional({ "remote": str, "name": str }) })
def __init__(self): Operation.__init__(self, { "remote": str, "pattern": Optional(str) }, accept_anonymous_user=True)
def __init__(self): Operation.__init__(self, {"review_id": int, "remark": Optional(str)})
def __init__(self): Operation.__init__(self, { "chain_ids": Optional([int]), "review_ids": Optional([int]) })
def __init__(self): Operation.__init__(self, { "subject": Optional(User), "current_pw": Optional(str), "new_pw": str })
def __init__(self): Operation.__init__(self, { "repository_id": Optional(int), "filter_id": Optional(int) })
def __init__(self): Operation.__init__(self, { "repository_name": str, "path": str, "user_id": Optional(int) })
def __init__(self): Operation.__init__(self, {"service_name": str, "lines": Optional(int)})
def __init__(self): Operation.__init__(self, { "prefix": str, "repository_id": Optional(int), "repository_name": Optional(str) })
def __init__(self): Operation.__init__(self, { "user_id": int, "current_pw": Optional(str), "new_pw": str })
def __init__(self): Operation.__init__(self, { "branch_id": int, "new_remote_name": Optional(str) })