Enums

Details

class GData.BatchOperationType(value)

Bases: GObject.GEnum

Indicates which type of batch operation caused the current GData.BatchOperationCallback to be called.

New in version 0.7.0.

QUERY = 0

a query operation

INSERTION = 1

an insertion operation

UPDATE = 2

an update operation

DELETION = 3

a deletion operation

class GData.ClientLoginAuthorizerError(value)

Bases: GObject.GEnum

Error codes for authentication and authorization operations on GData.ClientLoginAuthorizer. See the

online ClientLogin documentation for more information.

New in version 0.9.0.

classmethod quark()
Return type:

int

BAD_AUTHENTICATION = 1

The login request used a username or password that is not recognized.

NOT_VERIFIED = 2

The account email address has not been verified. The user will need to access their Google account directly to resolve the issue before logging in using a non-Google application.

TERMS_NOT_AGREED = 3

The user has not agreed to terms. The user will need to access their Google account directly to resolve the issue before logging in using a non-Google application.

CAPTCHA_REQUIRED = 4

A CAPTCHA is required. (A response with this error code will also contain an image URI and a CAPTCHA token.)

ACCOUNT_DELETED = 5

The user account has been deleted.

ACCOUNT_DISABLED = 6

The user account has been disabled.

SERVICE_DISABLED = 7

The user’s access to the specified service has been disabled. (The user account may still be valid.)

ACCOUNT_MIGRATED = 8

The user’s account login details have been migrated to a new system. (This is used for the transition from the old YouTube login details to the new ones.)

INVALID_SECOND_FACTOR = 9

The user’s account requires an application-specific password to be used.

class GData.DocumentsServiceError(value)

Bases: GObject.GEnum

Error codes for GData.DocumentsService operations.

New in version 0.4.0.

classmethod quark()
Return type:

int

TYPE = 0

the content type of a provided file was invalid

class GData.FreebaseSearchFilterType(value)

Bases: GObject.GEnum

Search filter container types.

New in version 0.15.1.

ALL = 0

all enclosed elements must match, logically an AND

ANY = 1

any of the enclosed elements must match, logically an OR

NOT = 2

the match is inverted.

class GData.MediaExpression(value)

Bases: GObject.GEnum

An enum representing the possible values of GData.MediaContent :expression.

SAMPLE = 0

the media is a sample of a larger video

FULL = 1

the media is the full version

NONSTOP = 2

the media is a continuous stream

class GData.MediaMedium(value)

Bases: GObject.GEnum

An enum representing the possible values of GData.MediaContent :medium.

New in version 0.4.0.

UNKNOWN = 0

the type of the media is unknown

IMAGE = 1

the media is an image

AUDIO = 2

the media is an audio stream

VIDEO = 3

the media is a video

DOCUMENT = 4

the media is another type of document

EXECUTABLE = 5

the media is an executable file

class GData.OperationType(value)

Bases: GObject.GEnum

Representations of the different operations performed by the library.

New in version 0.6.0.

QUERY = 1

a query

INSERTION = 2

an insertion of a GData.Entry

UPDATE = 3

an update of a GData.Entry

DELETION = 4

a deletion of a GData.Entry

DOWNLOAD = 5

a download of a file

UPLOAD = 6

an upload of a file

AUTHENTICATION = 7

authentication with the service

BATCH = 8

a batch operation with GData.BatchOperation

class GData.ParserError(value)

Bases: GObject.GEnum

Error codes for XML or JSON parsing operations.

classmethod quark()
Return type:

int

PARSING_STRING = 1

Error parsing the XML or JSON syntax itself

EMPTY_DOCUMENT = 2

Empty document

class GData.PicasaWebVisibility(value)

Bases: GObject.GEnum

Visibility statuses available for albums on PicasaWeb. For more information, see the

online documentation.

New in version 0.4.0.

PUBLIC = 1

the album is visible to everyone, regardless of whether they’re authenticated

PRIVATE = 2

the album is visible only to authenticated users in an allowlist

class GData.ServiceError(value)

Bases: GObject.GEnum

Error codes for GData.Service operations.

classmethod quark()
Return type:

int

UNAVAILABLE = 1

The service is unavailable due to maintenance or other reasons (e.g. network errors at the server end)

PROXY_ERROR = 10

The service is unavailable due to proxy network errors (e.g. proxy unreachable)

WITH_BATCH_OPERATION = 11

Generic error when running a batch operation and the whole operation fails

API_QUOTA_EXCEEDED = 12

The API request quota for this developer account has been exceeded for the current time period (e.g. day). Try again later.

New in version 0.16.0.

PROTOCOL_ERROR = 2

The client or server unexpectedly strayed from the protocol (fatal error)

ENTRY_ALREADYSERTED = 3

An entry has already been inserted, and cannot be re-inserted

AUTHENTICATION_REQUIRED = 4

The user attempted to do something which required authentication, and they weren’t authenticated or didn’t have authorization for the operation

NOT_FOUND = 5

A requested resource (feed or entry) was not found on the server

CONFLICT = 6

There was a conflict when updating an entry on the server; the server-side copy was modified between downloading and uploading the modified entry

FORBIDDEN = 7

Generic error for a forbidden action (not due to having insufficient permissions)

BAD_QUERY_PARAMETER = 8

A given query parameter was invalid for the query type

NETWORK_ERROR = 9

The service is unavailable due to local network errors (e.g. no Internet connection)

class GData.YouTubeAge(value)

Bases: GObject.GEnum

Video ages, allowing queries to be limited to videos uploaded in a recent time period.

New in version 0.3.0.

ALL_TIME = 0

retrieve all videos, regardless of the date they were uploaded

TODAY = 1

retrieve only videos uploaded in the past day

THIS_WEEK = 2

retrieve only videos uploaded in the past week

THIS_MONTH = 3

retrieve only videos uploaded in the past month

class GData.YouTubeFormat(value)

Bases: GObject.GEnum

Video formats available on YouTube. For more information, see the

online documentation.

New in version 0.3.0.

Deprecated since version 0.17.0: Accessing YouTube video content directly is no longer supported by Google. There is no replacement.

UNKNOWN = 0

retrieve videos in all formats when querying the service

RTSP_H263_AMR = 1

RTSP streaming URI for mobile video playback; H.263 video (up to 176×144) and AMR audio

HTTP_SWF = 5

HTTP URI to the embeddable player (SWF) for this video

RTSP_MPEG4_AAC = 6

RTSP streaming URI for mobile video playback; MPEG-4 SP video (up to 176×144) and AAC audio

class GData.YouTubePermission(value)

Bases: GObject.GEnum

Permissions for actions which can be set on a GData.YouTubeVideo using GData.YouTubeVideo.set_access_control().

The only actions which can have the GData.YouTubePermission.MODERATED permission are GData.YOUTUBE_ACTION_RATE and GData.YOUTUBE_ACTION_COMMENT.

New in version 0.7.0.

ALLOWED = 0

the action is allowed for everyone

DENIED = 1

the action is denied for everyone

MODERATED = 2

the action is moderated by the video owner

class GData.YouTubeSafeSearch(value)

Bases: GObject.GEnum

Safe search levels for removing restricted entries from query results. For more information, see the

online documentation.

New in version 0.3.0.

NONE = 0

YouTube will not perform any filtering on the search result set

MODERATE = 1

YouTube will filter some content from search results and, at the least, will filter content that is restricted in your locale

STRICT = 2

YouTube will try to exclude all restricted content from the search result set

class GData.YouTubeServiceError(value)

Bases: GObject.GEnum

Error codes for GData.YouTubeService operations.

classmethod quark()
Return type:

int

API_QUOTA_EXCEEDED = 0

the API request quota for this developer account has been exceeded

ENTRY_QUOTA_EXCEEDED = 1

the entry (e.g. video) quota for this user account has been exceeded

CHANNEL_REQUIRED = 2

the currently authenticated user doesn’t have a YouTube channel, but the current action requires one; if this error is received, inform the user that they need a YouTube channel, and provide a link to

https://www.youtube.com/create_channel

class GData.YouTubeSortOrder(value)

Bases: GObject.GEnum

Sort orders for the search results from queries. They specify the order of the designated order field.

New in version 0.3.0.

Deprecated since version 0.17.0: No longer supported by Google. There is no replacement.

NONE = 0

do not explicitly sort in any sense

ASCENDING = 1

sort results in ascending order of the order field

DESCENDING = 2

sort results in descending order of the order field

class GData.YouTubeStandardFeedType(value)

Bases: GObject.GEnum

Standard feed types for standard feed queries with GData.YouTubeService.query_standard_feed(). For more information, see the

online documentation.

TOP_RATED_FEED = 0

This feed contains the most highly rated YouTube videos. Deprecated: 0.17.0: Google no longer supports this feed type, and it will return results equivalent to GData.YouTubeStandardFeedType.MOST_POPULAR_FEED.

TOP_FAVORITES_FEED = 1

This feed contains videos most frequently flagged as favorite videos. Deprecated: 0.17.0: Google no longer supports this feed type, and it will return results equivalent to GData.YouTubeStandardFeedType.MOST_POPULAR_FEED.

MOST_VIEWED_FEED = 2

This feed contains the most frequently watched YouTube videos. Deprecated: 0.17.0: Google no longer supports this feed type, and it will return results equivalent to GData.YouTubeStandardFeedType.MOST_POPULAR_FEED.

This feed contains the most popular YouTube videos, selected using an algorithm that combines many different signals to determine overall popularity. As of version 0.17.0, this is the only supported feed type.

MOST_RECENT_FEED = 4

This feed contains the videos most recently submitted to YouTube. Deprecated: 0.17.0: Google no longer supports this feed type, and it will return results equivalent to GData.YouTubeStandardFeedType.MOST_POPULAR_FEED.

MOST_DISCUSSED_FEED = 5

This feed contains the YouTube videos that have received the most comments. Deprecated: 0.17.0: Google no longer supports this feed type, and it will return results equivalent to GData.YouTubeStandardFeedType.MOST_POPULAR_FEED.

MOST_LINKED_FEED = 6

This feed contains the YouTube videos that receive the most links from other websites. Deprecated: 0.17.0: Google no longer supports this feed type, and it will return results equivalent to GData.YouTubeStandardFeedType.MOST_POPULAR_FEED.

MOST_RESPONDED_FEED = 7

This feed contains YouTube videos that receive the most video responses. Deprecated: 0.17.0: Google no longer supports this feed type, and it will return results equivalent to GData.YouTubeStandardFeedType.MOST_POPULAR_FEED.

This feed contains videos recently featured on the YouTube home page or featured videos tab. Deprecated: 0.17.0: Google no longer supports this feed type, and it will return results equivalent to GData.YouTubeStandardFeedType.MOST_POPULAR_FEED.

WATCH_ON_MOBILE_FEED = 9

This feed contains videos suitable for playback on mobile devices. Deprecated: 0.17.0: Google no longer supports this feed type, and it will return results equivalent to GData.YouTubeStandardFeedType.MOST_POPULAR_FEED.

class GData.YouTubeUploader(value)

Bases: GObject.GEnum

Video uploaders, allowing queries to be limited to returning videos uploaded by YouTube partners.

New in version 0.3.0.

Deprecated since version 0.17.0: No longer supported by Google. There is no replacement.

ALL = 0

retrieve all videos, regardless of who uploaded them

PARTNER = 1

retrieve only videos uploaded by YouTube partners