Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

Python 3.10 is now generally available.

google.appengine.api.capabilities.CapabilitySet

Encapsulates one or more capabilities.

Inherits From: expected_type

Capabilities can either be named explicitly, or inferred from the list of methods provided. If no capabilities or methods are provided, this will check whether the entire package is enabled.

capabilities List of strings
methods List of strings

Methods

admin_message

View source

Retrieves any administrator notice messages for these capabilities.

Returns
A string containing one or more administrator messages, or an empty string.

Raises
UnknownCapabilityError If a specified capability was not recognized.

is_enabled

View source

Tests whether the capabilities are currently enabled.

Returns
True if API calls that require these capabilities will succeed.

Raises
UnknownCapabilityError If a specified capability was not recognized.

will_remain_enabled_for

View source

Returns whether a capability will remain enabled.

DEPRECATED: Use is_enabled() instead. This method was never fully implemented.

Args
time Number of seconds in the future to look when checking for scheduled downtime.

Returns
True if there is no scheduled downtime for the specified capability within the amount of time specified.

Raises
UnknownCapabilityError If a specified capability was not recognized.