flexget.components.pending_approval.api module#

class flexget.components.pending_approval.api.ObjectsContainer[source]#

Bases: object

operation_object = {'additionalProperties': False, 'properties': {'operation': {'enum': ['approve', 'reject'], 'type': 'string'}}, 'required': ['operation'], 'type': 'object'}#
pending_entry_list = {'items': {'properties': {'added': {'format': 'date-time', 'type': 'string'}, 'approved': {'type': 'boolean'}, 'id': {'type': 'integer'}, 'task_name': {'type': 'string'}, 'title': {'type': 'string'}, 'url': {'type': 'string'}}, 'type': 'object'}, 'type': 'array'}#
pending_entry_object = {'properties': {'added': {'format': 'date-time', 'type': 'string'}, 'approved': {'type': 'boolean'}, 'id': {'type': 'integer'}, 'task_name': {'type': 'string'}, 'title': {'type': 'string'}, 'url': {'type': 'string'}}, 'type': 'object'}#
class flexget.components.pending_approval.api.PendingEntriesAPI(api, *args, **kwargs)[source]#

Bases: APIResource

Parameters:

api (RestxAPI)

delete(session=None)[source]#

Delete pending entries.

get(session=None)[source]#

List all pending entries.

mediatypes()#
put(session=None)[source]#

Approve/Reject the status of pending entries.

endpoint = 'pending_pending_entries_api'#
methods: ClassVar[Collection[str] | None] = {'DELETE', 'GET', 'PUT'}#

The methods this view is registered for. Uses the same default (["GET", "HEAD", "OPTIONS"]) as route and add_url_rule by default.

class flexget.components.pending_approval.api.PendingEntryAPI(api, *args, **kwargs)[source]#

Bases: APIResource

Parameters:

api (RestxAPI)

delete(entry_id, session=None)[source]#

Delete a pending entry.

get(entry_id, session=None)[source]#

Get a pending entry by ID.

mediatypes()#
put(entry_id, session=None)[source]#

Approve/Reject the status of a pending entry.

endpoint = 'pending_pending_entry_api'#
methods: ClassVar[Collection[str] | None] = {'DELETE', 'GET', 'PUT'}#

The methods this view is registered for. Uses the same default (["GET", "HEAD", "OPTIONS"]) as route and add_url_rule by default.