REST Resource: enterprises.structures.rooms
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Ресурс: Комната
Ресурс комнаты представляет собой экземпляр подпространства внутри структуры, например комнаты в гостиничном номере или арендуемой квартире.
JSON-представление |
---|
{
"name": string,
"traits": {
object
}
} |
Поля |
---|
name | string Только вывод. Имя ресурса комнаты. Например: «предприятия/XYZ/структуры/ABC/комнаты/123». |
traits | object ( Struct format) Особенности помещения. |
Методы |
---|
| Получает помещение, управляемое предприятием. |
| Перечисляет помещения, находящиеся в ведении предприятия. |
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-25 UTC.
[[["Прост для понимания","easyToUnderstand","thumb-up"],["Помог мне решить мою проблему","solvedMyProblem","thumb-up"],["Другое","otherUp","thumb-up"]],[["Отсутствует нужная мне информация","missingTheInformationINeed","thumb-down"],["Слишком сложен/слишком много шагов","tooComplicatedTooManySteps","thumb-down"],["Устарел","outOfDate","thumb-down"],["Проблема с переводом текста","translationIssue","thumb-down"],["Проблемы образцов/кода","samplesCodeIssue","thumb-down"],["Другое","otherDown","thumb-down"]],["Последнее обновление: 2025-07-25 UTC."],[[["\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,["- [Resource: Room](#Room)\n - [JSON representation](#Room.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Room Room 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. |"]]