REST Resource: enterprises.structures.rooms
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
منبع: اتاق
منبع اتاق نمونه ای از فضای فرعی را در یک ساختار مانند اتاق های یک سوئیت هتل یا آپارتمان اجاره ای نشان می دهد.
نمایندگی JSON |
---|
{
"name": string,
"traits": {
object
}
} |
فیلدها |
---|
name | string فقط خروجی نام منبع اتاق به عنوان مثال: "enterprises/XYZ/structures/ABC/rooms/123". |
traits | object ( Struct format) ویژگی های اتاق |
روش ها |
---|
| اتاقی را دریافت می کند که توسط شرکت مدیریت می شود. |
| اتاق های مدیریت شده توسط شرکت را فهرست می کند. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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 بهوقت ساعت هماهنگ جهانی."],[[["\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. |"]]