As of January 1, 2020 this library no longer supports Python 2 on the latest released version. Library versions released prior to that date will continue to be available. For more information please visit Python 2 support on Google Cloud.

Types for Google Apps Script Type Docs API

class google.apps.script.type.docs.types.DocsAddOnManifest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Docs add-on manifest.

homepage_trigger

If present, this overrides the configuration from addOns.common.homepageTrigger.

Type

google.apps.script.type.types.HomepageExtensionPoint

on_file_scope_granted_trigger

Endpoint to execute when file scope authorization is granted for this document/user pair.

Type

google.apps.script.type.docs.types.DocsExtensionPoint

class google.apps.script.type.docs.types.DocsExtensionPoint(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Common format for declaring a Docs add-on’s triggers.

run_function

Required. The endpoint to execute when this extension point is activated.

Type

str