Class ResourceType

資源類型

應用程式專屬資源類型,資源類型的專屬 ID 應具有對應的 WorkflowResourceDefinition。

僅適用於擴充 Google Workspace Studio 的 Google Workspace 外掛程式。

用法範例:

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

方法

方法傳回類型簡短說明
setWorkflowResourceDefinitionId(resourceType)ResourceType設定工作流程資源定義 ID。

內容詳盡的說明文件

setWorkflowResourceDefinitionId(resourceType)

設定工作流程資源定義 ID。

參數

名稱類型說明
resourceTypeString工作流程資源定義 ID。

回攻員

ResourceType - 這個 ResourceType 物件。