是否有可能在未经批准的情况下发布供内部使用的加载项? [英] Is it possible to publish an Add-on for internal use without approval process?

查看:81
本文介绍了是否有可能在未经批准的情况下发布供内部使用的加载项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果仅用于内部使用,是否可以以某种方式发布未经Google批准的加载项?

Is it somehow possible to publish add-on without Google approval if it is going to be used for my internal use only?

如果没有,则有可能使某些Google Apps脚本项目成为全球性.这样一来,我无需将相同的代码/功能复制到另一个电子表格或文档中,即可使我的自定义宏再次起作用.

If not, is there any possibility to make some of the Google Apps Script projects global. So that I would not need to copy same code/functionality to another spreadsheets or docs to get my custom macros to work again.

推荐答案

可以将附件作为私有发布到G Suite帐户.专用加载项仅限于Apps脚本文件所在的域/G Suite帐户.

An Add-On can be published as private the to a G Suite account. A private add-on is restricted to the domain/G Suite Account that the Apps Script file is in.

https://developers.google.com/apps-script/add -ons/publish

加载项也可以不公开发布. 将插件作为私有发布到G Suite帐户与发布未列出的插件不同.未列出的附件在技术上是公开的,只是未在G Suite市场中显示.要安装未列出的附件,用户需要链接.

An add-on can also be published as unlisted. Publishing the add-on as private to the G Suite account is not the same as publishing an add-on as unlisted. An unlisted add-on is technically public, it's just not shown in the G Suite Marketplace. To install an unlisted add-on the users need the link.

附加组件有两个不同的批准.一个用于OAuth同意,另一个用于附加功能. OAuth同意用于要求用户允许其帐户中的不同服务/文件.附件的功能是显示外观,内容以及它是否起作用.

There are two different approvals for an add-on. One for the OAuth consent, and another for the function of the add-on. The OAuth consent is for asking the user for permission to different services / files in their account. The function of the add-on is for appearance, content and whether it works or not.

甚至私人或未列出的附件也必须发布到G Suite市场,这意味着您需要创建一个标准"附件. Google Cloud Project,将其与您的Apps Script项目相关联,然后启用G Suite Marketplace SDK,并在G Suite Marketplace SDK中配置设置.

Even private or unlisted Add-ons must be published to the G Suite Marketplace, which means that you need to create a "standard" Google Cloud Project, associate it with your Apps Script project, and then enable the G Suite Marketplace SDK, and configure settings in the G Suite Marketplace SDK.

要访问您的Google Cloud Platform仪表板,请使用URL

To get to your Google Cloud Platform dashboard, use the URL

https://console.cloud.google.com/home/dashboard

  • 来自"IAM和管理员";导航到管理资源"
  • 如果您没有组织名称,请创建一个组织.注意:只能通过G Suite帐户或云身份"来建立组织. https://cloud.google.com/resource-manager/docs/creating-managing-organization#acquiring
  • 创建一个新的GCP项目
  • 获取GCP项目编号
  • 将GCP项目编号放入Apps脚本项目
  • 导航到API和服务仪表板.
  • 确保下拉菜单中列出了要使用的项目 下
  • 点击启用API和服务"
  • 搜索G Suite市场
  • 启用G Suite Marketplace SDK
  • 配置G Suite Marketplace SDK
  • From "IAM and Admin" navigate to "Manage Resources"
  • If you don't have an organization name, then create an organization. NOTE: An organization can only be set up through a G Suite account OR through "Cloud Identity." https://cloud.google.com/resource-manager/docs/creating-managing-organization#acquiring
  • Create a new GCP project
  • Get the GCP Project Number
  • Put the GCP Project Number into the Apps Script project
  • Navigate to the APIs and Services dashboard.
  • Make sure that the project that you want to use is listed in the drop down
  • Click "Enable APIs and Services"
  • Search for G Suite Marketplace
  • Enable the G Suite Marketplace SDK
  • Configure the G Suite Marketplace SDK

还具有使Apps Script项目文件作为库"可供其他Apps Script项目使用的选项.通过提供项目密钥",可以使库可用于其他Apps脚本项目.源应用脚本(库).

There is also the option to make an Apps Script project file available to other Apps Script projects as a "library." A library can be made available to other Apps Script projects, by providing the "project key" of the source Apps Script (library).

由于库需要项目密钥,因此任何人都想使用源Apps脚本文件.为了找到项目密钥,从代码编辑器中选择文件". -项目属性";并查找项目密钥(已弃用)"

Whoever wants to use the source Apps Script file as a library needs the project key. To find the project key, from the code editor choose "File" - "Project Properties" and look for "Project key (Deprecated)"

要将Apps脚本文件添加为库,请从代码编辑器中选择资源". -图书馆".您无需执行任何操作即可创建库.每个Apps脚本项目都可以作为库使用.您需要做的就是共享项目密钥.

To add an Apps Script file as a library, from the code editor, choose "Resources" - "Libraries". You don't need to do anything to create a Library. Every Apps Script project is available as a Library. All you need to do is share the Project Key.

可以添加附加组件";菜单项添加到Google Spreadsheet或Doc,而无需发布附件,该附件菜单项将运行该文档中 的任何代码,就像添加在.但是,您需要编辑要将代码部署到的每个用户的文档,然后将代码手动添加到他们的文档中.

You can add an "Add-On" menu item to a Google Spreadsheet or Doc, without publishing an Add-On, and that Add-On menu item will run any code that is in that document, just like an add on. But you would need to edit the document of every user you wanted to deploy the code to, and manually add the code to their document.

如果Apps脚本文件未作为附加组件发布,则创建附加菜单毫无意义,因为您可以创建自定义菜单.

If the Apps Script file is not published as an add-on, then there's no point in creating an Add-On menu, since you can create a custom menu.

这篇关于是否有可能在未经批准的情况下发布供内部使用的加载项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆