Reference documentation and code samples for the Google Workspace Add-ons V1 API class Google::Apps::Script::Type::Gmail::GmailAddOnManifest.
Properties customizing the appearance and execution of a Gmail add-on.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#authorization_check_function
def authorization_check_function() -> ::String
- (::String) — The name of an endpoint that verifies that the add-on has all the required third-party authorizations, by probing the third-party APIs. If the probe fails, the function should throw an exception to initiate the authorization flow. This function is called before each invocation of the add-on, in order to ensure a smooth user experience.
#authorization_check_function=
def authorization_check_function=(value) -> ::String
- value (::String) — The name of an endpoint that verifies that the add-on has all the required third-party authorizations, by probing the third-party APIs. If the probe fails, the function should throw an exception to initiate the authorization flow. This function is called before each invocation of the add-on, in order to ensure a smooth user experience.
- (::String) — The name of an endpoint that verifies that the add-on has all the required third-party authorizations, by probing the third-party APIs. If the probe fails, the function should throw an exception to initiate the authorization flow. This function is called before each invocation of the add-on, in order to ensure a smooth user experience.
#compose_trigger
def compose_trigger() -> ::Google::Apps::Script::Type::Gmail::ComposeTrigger
- (::Google::Apps::Script::Type::Gmail::ComposeTrigger) — Defines the compose time trigger for a compose time add-on. This is the trigger that causes an add-on to take action when the user is composing an email. All compose time addons are required to have the gmail.addons.current.action.compose scope even though it might not edit the draft.
#compose_trigger=
def compose_trigger=(value) -> ::Google::Apps::Script::Type::Gmail::ComposeTrigger
- value (::Google::Apps::Script::Type::Gmail::ComposeTrigger) — Defines the compose time trigger for a compose time add-on. This is the trigger that causes an add-on to take action when the user is composing an email. All compose time addons are required to have the gmail.addons.current.action.compose scope even though it might not edit the draft.
- (::Google::Apps::Script::Type::Gmail::ComposeTrigger) — Defines the compose time trigger for a compose time add-on. This is the trigger that causes an add-on to take action when the user is composing an email. All compose time addons are required to have the gmail.addons.current.action.compose scope even though it might not edit the draft.
#contextual_triggers
def contextual_triggers() -> ::Array<::Google::Apps::Script::Type::Gmail::ContextualTrigger>
- (::Array<::Google::Apps::Script::Type::Gmail::ContextualTrigger>) — Defines the set of conditions that trigger the add-on.
#contextual_triggers=
def contextual_triggers=(value) -> ::Array<::Google::Apps::Script::Type::Gmail::ContextualTrigger>
- value (::Array<::Google::Apps::Script::Type::Gmail::ContextualTrigger>) — Defines the set of conditions that trigger the add-on.
- (::Array<::Google::Apps::Script::Type::Gmail::ContextualTrigger>) — Defines the set of conditions that trigger the add-on.
#homepage_trigger
def homepage_trigger() -> ::Google::Apps::Script::Type::HomepageExtensionPoint
-
(::Google::Apps::Script::Type::HomepageExtensionPoint) — Defines an endpoint that will be executed in contexts that don't
match a declared contextual trigger. Any cards generated by this function
will always be available to the user, but may be eclipsed by contextual
content when this add-on declares more targeted triggers.
If present, this overrides the configuration from
addOns.common.homepageTrigger
.
#homepage_trigger=
def homepage_trigger=(value) -> ::Google::Apps::Script::Type::HomepageExtensionPoint
-
value (::Google::Apps::Script::Type::HomepageExtensionPoint) — Defines an endpoint that will be executed in contexts that don't
match a declared contextual trigger. Any cards generated by this function
will always be available to the user, but may be eclipsed by contextual
content when this add-on declares more targeted triggers.
If present, this overrides the configuration from
addOns.common.homepageTrigger
.
-
(::Google::Apps::Script::Type::HomepageExtensionPoint) — Defines an endpoint that will be executed in contexts that don't
match a declared contextual trigger. Any cards generated by this function
will always be available to the user, but may be eclipsed by contextual
content when this add-on declares more targeted triggers.
If present, this overrides the configuration from
addOns.common.homepageTrigger
.
#universal_actions
def universal_actions() -> ::Array<::Google::Apps::Script::Type::Gmail::UniversalAction>
- (::Array<::Google::Apps::Script::Type::Gmail::UniversalAction>) — Defines set of universal actions for the add-on. The user triggers universal actions from the add-on toolbar menu.
#universal_actions=
def universal_actions=(value) -> ::Array<::Google::Apps::Script::Type::Gmail::UniversalAction>
- value (::Array<::Google::Apps::Script::Type::Gmail::UniversalAction>) — Defines set of universal actions for the add-on. The user triggers universal actions from the add-on toolbar menu.
- (::Array<::Google::Apps::Script::Type::Gmail::UniversalAction>) — Defines set of universal actions for the add-on. The user triggers universal actions from the add-on toolbar menu.