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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-16 UTC."],[[["\u003cp\u003e\u003ccode\u003eCapabilitySet\u003c/code\u003e encapsulates one or more capabilities, which can be named explicitly or inferred from provided methods, and if no capabilities or methods are provided, it will check if the entire package is enabled.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eadmin_message()\u003c/code\u003e method retrieves any administrator notice messages for the specified capabilities, returning a string or an empty string.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eis_enabled()\u003c/code\u003e method checks if the capabilities are currently enabled, returning \u003ccode\u003eTrue\u003c/code\u003e if API calls requiring these capabilities will succeed.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ewill_remain_enabled_for()\u003c/code\u003e method, now deprecated in favor of \u003ccode\u003eis_enabled()\u003c/code\u003e, checks if a capability will remain enabled within a specified time frame, returning \u003ccode\u003eTrue\u003c/code\u003e if there's no scheduled downtime.\u003c/p\u003e\n"],["\u003cp\u003eAll methods in \u003ccode\u003eCapabilitySet\u003c/code\u003e can raise an \u003ccode\u003eUnknownCapabilityError\u003c/code\u003e if a specified capability is not recognized.\u003c/p\u003e\n"]]],[],null,["# google.appengine.api.capabilities.CapabilitySet\n\n\u003cbr /\u003e\n\nEncapsulates one or more capabilities.\n\nInherits From: [`expected_type`](../../../../google/appengine/api/validation/Validator/expected_type) \n\n google.appengine.api.capabilities.CapabilitySet(\n package,\n capabilities=None,\n methods=None,\n stub_map=../../../../google/appengine/api/apiproxy_stub_map\n )\n\nCapabilities can either be named explicitly, or inferred from the list of\nmethods provided. If no capabilities or methods are provided, this will check\nwhether the entire package is enabled.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nMethods\n-------\n\n### `admin_message`\n\n[View source](https://github.com/GoogleCloudPlatform/appengine-python-standard/tree/main/src/google/appengine/api/capabilities/__init__.py#L154-L169) \n\n admin_message()\n\nRetrieves any administrator notice messages for these capabilities.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### `is_enabled`\n\n[View source](https://github.com/GoogleCloudPlatform/appengine-python-standard/tree/main/src/google/appengine/api/capabilities/__init__.py#L97-L110) \n\n is_enabled()\n\nTests whether the capabilities are currently enabled.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### `will_remain_enabled_for`\n\n[View source](https://github.com/GoogleCloudPlatform/appengine-python-standard/tree/main/src/google/appengine/api/capabilities/__init__.py#L112-L152) \n\n will_remain_enabled_for(\n time=60\n )\n\nReturns whether a capability will remain enabled.\n\nDEPRECATED: Use `is_enabled()` instead. This method was never fully\nimplemented.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e"]]