直接使用源存储库 API 镜像一个 GitHub 存储库
Mirror a GitHub repository using the source-repositories API directly
云控制台提供了一个界面,用于从 GitHub 镜像存储库。
当您使用此功能时,它会在存储库上创建一个 mirrorConfig,可以从 API 读取该存储库。然而,API 本身似乎没有提供写入此配置的方法。
尝试使用 mirrorConfig 创建存储库时的示例
{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"field": "repo.mirror_config",
"description": "mirror_config is a read-only field and must not be set"
}
]
},
{
"@type": "type.googleapis.com/google.rpc.RequestInfo",
"requestId": "*****"
}
]
}
}
有没有办法在 Google Cloud Platform 中以编程方式创建镜像源存储库?
没有
是答案:(
来源:George 上面的评论(Google Cloud Platform 支持团队)
云控制台提供了一个界面,用于从 GitHub 镜像存储库。
当您使用此功能时,它会在存储库上创建一个 mirrorConfig,可以从 API 读取该存储库。然而,API 本身似乎没有提供写入此配置的方法。
尝试使用 mirrorConfig 创建存储库时的示例
{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"field": "repo.mirror_config",
"description": "mirror_config is a read-only field and must not be set"
}
]
},
{
"@type": "type.googleapis.com/google.rpc.RequestInfo",
"requestId": "*****"
}
]
}
}
有没有办法在 Google Cloud Platform 中以编程方式创建镜像源存储库?
没有
是答案:(
来源:George 上面的评论(Google Cloud Platform 支持团队)