提供意見
Method: sites.versions.clone
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
HTTP請求 POST https://firebasehosting.googleapis.com/v1beta1/{parent=sites/*}/versions:clone
URL 使用gRPC 轉碼 語法。
路徑參數 參數 parent
string
必需的。複製版本的目標站點,格式為:
sites/ SITE_ID
請求正文 請求正文包含具有以下結構的資料:
JSON 表示 {
"sourceVersion" : string ,
"finalize" : boolean ,
// Union field filter
can be only one of the following:
"include" : {
object (PathFilter
)
} ,
"exclude" : {
object (PathFilter
)
}
// End of list of possible types for union field filter
.
}
領域 sourceVersion
string
必需的。要複製的版本的唯一標識符,格式為:
sites/ SITE_ID /versions/ VERSION_ID
finalize
boolean
如果為 true,則在複製完成後,對versions.clone
呼叫會立即決定版本。
如果為 false,則複製版本的狀態將為CREATED
。使用versions.patch
將版本的狀態設定為FINALIZED
。
聯合字段filter
。
filter
只能是以下之一:
include
object ( PathFilter
)
如果提供,則只有與此清單中的一個或多個 RegEx 值相符的路徑才會包含在新版本中。
exclude
object ( PathFilter
)
如果提供,則只有與此清單中的任何正規表示式值都不符合的路徑才會包含在新版本中。
響應體 如果成功,回應正文將包含一個Operation
實例。
授權範圍 需要以下 OAuth 範圍之一:
https://www.googleapis.com/auth/firebase.hosting
https://www.googleapis.com/auth/firebase
https://www.googleapis.com/auth/cloud-platform
有關詳細信息,請參閱身份驗證概述 。
路徑過濾器 JSON 表示 {
"regexes" : [
string
]
}
領域 regexes[]
string
用於篩選的 RegEx 值陣列。
提供意見
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權 ,程式碼範例則為阿帕契 2.0 授權 。詳情請參閱《Google Developers 網站政策 》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-12-01 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]
想進一步說明嗎?