SubscriptionChannel
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
リソースの変更を監視するために使用される通知チャネル。
JSON 表現 |
{
"id": string,
"token": string,
"expiration": string,
"type": string,
"address": string,
"payload": boolean,
"params": {
string: string,
...
},
"resourceId": string,
"resourceUri": string,
"kind": string
} |
フィールド |
id |
string
このチャンネルを識別する UUID または一意の文字列。
|
token |
string
このチャンネル経由で通知と一緒に対象のアドレスに配布される任意の文字列。省略可能。
|
expiration |
string (int64 format)
通知チャンネルの有効期限。Unix のタイムスタンプでミリ秒単位で表示されます。省略可能。
|
type |
string
このチャンネルで使用される配信方法の種類。
|
address |
string
このチャンネルの通知が配信されるアドレス。
|
payload |
boolean
ペイロードが必要かどうかを表すブール値。省略可。
|
params |
map (key: string, value: string)
配信チャンネルの操作を制御する追加のパラメータ。省略可。たとえば、params.ttl は通知チャンネルの有効期間(秒単位)を指定します。デフォルトは 2 時間で、最大 TTL は 2 日です。 "key": value ペアのリストを含むオブジェクト。例: { "name": "wrench", "mass": "1.3kg", "count": "3" }
|
resourceId |
string
このチャンネルで監視するリソースを識別する不透明な ID。異なる API バージョンでも安定しています。
|
resourceUri |
string
監視対象のリソースのバージョン固有の ID。
|
kind |
string
リソースの変更を監視するために使用される通知チャネル(api#channel )として識別します。
|
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-24 UTC。
[null,null,["最終更新日 2025-07-24 UTC。"],[],[],null,["# SubscriptionChannel\n\nAn notification channel used to watch for resource changes.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"id\": string, \"token\": string, \"expiration\": string, \"type\": string, \"address\": string, \"payload\": boolean, \"params\": { string: string, ... }, \"resourceId\": string, \"resourceUri\": string, \"kind\": string } ``` |\n\n| Fields ||\n|---------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `id` | `string` A UUID or similar unique string that identifies this channel. |\n| `token` | `string` An arbitrary string delivered to the target address with each notification delivered over this channel. Optional. |\n| `expiration` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional. |\n| `type` | `string` The type of delivery mechanism used for this channel. |\n| `address` | `string` The address where notifications are delivered for this channel. |\n| `payload` | `boolean` A Boolean value to indicate whether payload is wanted. Optional. |\n| `params` | `map (key: string, value: string)` Additional parameters controlling delivery channel behavior. Optional. For example, `params.ttl` specifies the time-to-live in seconds for the notification channel, where the default is 2 hours and the maximum TTL is 2 days. An object containing a list of `\"key\": value` pairs. Example: `{ \"name\": \"wrench\", \"mass\": \"1.3kg\", \"count\": \"3\" }`. |\n| `resourceId` | `string` An opaque ID that identifies the resource being watched on this channel. Stable across different API versions. |\n| `resourceUri` | `string` A version-specific identifier for the watched resource. |\n| `kind` | `string` Identifies this as a notification channel used to watch for changes to a resource, which is `api#channel`. |"]]