提供意見
REST Resource: sites.channels
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源:頻道 Channel
代表網站的發布流。所有網站都有一個預設live
頻道,向 Firebase 提供的子網域和任何連接的自訂網域提供內容。
JSON 表示 {
"name" : string ,
"url" : string ,
"release" : {
object (Release
)
} ,
"createTime" : string ,
"updateTime" : string ,
"retainedReleaseCount" : integer ,
"labels" : {
string : string ,
...
} ,
// Union field expiration
can be only one of the following:
"expireTime" : string ,
"ttl" : string
// End of list of possible types for union field expiration
.
}
領域 name
string
頻道的完全限定資源名稱,格式為:
sites/ SITE_ID /channels/ CHANNEL_ID
url
string
僅輸出。可以查看該頻道目前版本內容的 URL。此 URL 是 Firebase 提供的web.app
子網域。
也可以在 Firebase 提供的firebaseapp.com
子網域中查看此頻道目前版本的內容。
如果此頻道是託管網站的live
頻道,則也可以在任何連接的自訂網域中查看此頻道目前版本的內容。
release
object ( Release
)
僅輸出。頻道的目前版本(如果有)。
createTime
string ( Timestamp
format)
僅輸出。建立頻道的時間。
RFC3339 UTC「Zulu」格式的時間戳,具有奈秒解析度和最多九個小數位。範例: "2014-10-02T15:01:23Z"
和"2014-10-02T15:01:23.045123456Z"
。
updateTime
string ( Timestamp
format)
僅輸出。頻道上次更新的時間。
RFC3339 UTC「Zulu」格式的時間戳,具有奈秒解析度和最多九個小數位。範例: "2014-10-02T15:01:23Z"
和"2014-10-02T15:01:23.045123456Z"
。
retainedReleaseCount
integer
為了回滾或其他目的而保留在通道上的先前版本的數量。
必須是 1-100 之間的數字。新頻道預設為 10。
labels
map (key: string, value: string)
用於額外元資料和/或過濾的文字標籤。
包含"key": value
對。範例: { "name": "wrench", "mass": "1.3kg", "count": "3" }
。
聯盟場expiration
。
expiration
只能是以下其中之一:
expireTime
string ( Timestamp
format)
自動刪除頻道的時間。
如果為空,則不會自動刪除頻道。無論是直接設置還是透過ttl
字段設置,該字段都會出現在輸出中。
RFC3339 UTC「Zulu」格式的時間戳,具有奈秒解析度和最多九個小數位。範例: "2014-10-02T15:01:23Z"
和"2014-10-02T15:01:23.045123456Z"
。
ttl
string ( Duration
format)
僅輸入。該頻道的生存時間。將expireTime
設定為請求時間之後提供的持續時間。
以秒為單位的持續時間,最多包含九個小數位,以「 s
」結尾。例: "3.5s"
。
方法 在指定網站中建立新頻道。 刪除指定站點的指定頻道。 檢索指定站點的指定頻道的資訊。 列出指定站點的頻道。 更新指定站點的指定頻道的資訊。
提供意見
除非另有註明,否則本頁面中的內容是採用創用 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":"其他"
}]
想進一步說明嗎?