Class ResourceType

ResourceType

An application specific resource type, the unique identifier of the resource type should have a corresponding WorkflowResourceDefinition.

Only available for Google Workspace add-ons that extend Google Workspace Studio.

Sample usage:

const customResourceType = AddOnsResponseService.newResourceType()
   .setWorkflowResourceDefinitionId("sample_resource_type_1");

Methods

MethodReturn typeBrief description
setWorkflowResourceDefinitionId(resourceType)ResourceTypeSets the workflow resource definition id.

Detailed documentation

setWorkflowResourceDefinitionId(resourceType)

Sets the workflow resource definition id.

Parameters

NameTypeDescription
resourceTypeStringThe workflow resource definition id.

Return

ResourceType — This ResourceType object.