REST Resource: enterprises.structures.rooms
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源:Room
「客房資源」代表某個結構中的子空間例項 (例如飯店套房或出租公寓內的客房)。
JSON 表示法 |
{
"name": string,
"traits": {
object
}
} |
欄位 |
name |
string
僅供輸出。會議室的資源名稱。例如:「enterprises/XYZ/structures/ABC/rooms/123」。
|
traits |
object (Struct format)
房間特性。
|
方法 |
|
取得由企業管理的會議室。 |
|
列出企業管理的會議室。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eThe Room resource represents sub-spaces within a structure, like rooms in a hotel or apartment.\u003c/p\u003e\n"],["\u003cp\u003eRooms have traits and are identified by a unique resource name.\u003c/p\u003e\n"],["\u003cp\u003eYou can get information about individual rooms or list all rooms managed by an enterprise using the provided methods.\u003c/p\u003e\n"]]],["The `Room` resource represents a sub-space within a structure. It has a `name` (resource identifier) and `traits` (room-specific attributes) represented as a JSON object. Key actions include retrieving a single room's details (`get`) and listing all rooms associated with an enterprise (`list`). The resource is identified with the format: \"enterprises/XYZ/structures/ABC/rooms/123\". The format of the data of a room is: `{\"name\": string, \"traits\": {object}}`.\n"],null,["# REST Resource: enterprises.structures.rooms\n\n- [Resource: Room](#Room)\n - [JSON representation](#Room.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Room\n--------------\n\nRoom resource represents an instance of sub-space within a structure such as rooms in a hotel suite or rental apartment.\n\n| JSON representation |\n|--------------------------------------------------|\n| ``` { \"name\": string, \"traits\": { object } } ``` |\n\n| Fields ||\n|----------|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. The resource name of the room. For example: \"enterprises/XYZ/structures/ABC/rooms/123\". |\n| `traits` | `object (`[Struct](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Struct)` format)` Room traits. |\n\n| Methods ------- ||\n|-------------------------------------------------------------------------------------|----------------------------------------|\n| ### [get](/nest/device-access/reference/rest/v1/enterprises.structures.rooms/get) | Gets a room managed by the enterprise. |\n| ### [list](/nest/device-access/reference/rest/v1/enterprises.structures.rooms/list) | Lists rooms managed by the enterprise. |"]]