自 2024 年 6 月 17 日起,Cloud Source Repositories 将不再向新客户提供。如果您的组织之前未使用过 Cloud Source Repositories,则无法启用该 API 或使用 Cloud Source Repositories。未与组织相关联的新项目无法启用 Cloud Source Repositories API。2024 年 6 月 17 日之前使用过 Cloud Source Repositories 的组织不受此更改的影响。
启用和停用服务
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页介绍了启用或停用 Cloud Source Repositories 所需的步骤。
启用服务
- 使用以下 Google Cloud CLI 命令启用 Cloud Source Repositories API:
gcloud services enable sourcerepo.googleapis.com
停用服务
在停用 Cloud Source Repositories API 之前,请确保要保留的所有代码在其他位置提供。
建议您在停用 API 之前先删除代码库。
如需停用 Cloud Source Repositories,请针对当前项目运行以下命令:
gcloud services disable sourcerepos.googleapis.com
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-01-30。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-01-30。"],[],[]]