Skip to content

Commit

Permalink
feat(admin): update the API
Browse files Browse the repository at this point in the history
#### admin:directory_v1

The following keys were added:
- schemas.BacklightInfo.description
- schemas.BacklightInfo.id
- schemas.BacklightInfo.properties.brightness.description
- schemas.BacklightInfo.properties.brightness.format
- schemas.BacklightInfo.properties.brightness.readOnly
- schemas.BacklightInfo.properties.brightness.type
- schemas.BacklightInfo.properties.maxBrightness.description
- schemas.BacklightInfo.properties.maxBrightness.format
- schemas.BacklightInfo.properties.maxBrightness.readOnly
- schemas.BacklightInfo.properties.maxBrightness.type
- schemas.BacklightInfo.properties.path.description
- schemas.BacklightInfo.properties.path.readOnly
- schemas.BacklightInfo.properties.path.type
- schemas.BacklightInfo.type
- schemas.ChromeOsDevice.properties.backlightInfo.description
- schemas.ChromeOsDevice.properties.backlightInfo.items.$ref
- schemas.ChromeOsDevice.properties.backlightInfo.readOnly
- schemas.ChromeOsDevice.properties.backlightInfo.type
  • Loading branch information
yoshi-automation authored and sofisl committed Mar 14, 2024
1 parent 7500df9 commit 939730c
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 1 deletion.
34 changes: 33 additions & 1 deletion discovery/admin-directory_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -4671,7 +4671,7 @@
}
}
},
"revision": "20240227",
"revision": "20240304",
"rootUrl": "https://admin.googleapis.com/",
"schemas": {
"Alias": {
Expand Down Expand Up @@ -4810,6 +4810,30 @@
},
"type": "object"
},
"BacklightInfo": {
"description": "Information about the device's backlights.",
"id": "BacklightInfo",
"properties": {
"brightness": {
"description": "Output only. Current brightness of the backlight, between 0 and max_brightness.",
"format": "int32",
"readOnly": true,
"type": "integer"
},
"maxBrightness": {
"description": "Output only. Maximum brightness for the backlight.",
"format": "int32",
"readOnly": true,
"type": "integer"
},
"path": {
"description": "Output only. Path to this backlight on the system. Useful if the caller needs to correlate with other information.",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"BatchChangeChromeOsDeviceStatusRequest": {
"description": "A request for changing the status of a batch of ChromeOS devices.",
"id": "BatchChangeChromeOsDeviceStatusRequest",
Expand Down Expand Up @@ -5383,6 +5407,14 @@
"format": "int64",
"type": "string"
},
"backlightInfo": {
"description": "Output only. Contains backlight information for the device.",
"items": {
"$ref": "BacklightInfo"
},
"readOnly": true,
"type": "array"
},
"bootMode": {
"description": "The boot mode for the device. The possible values are: * `Verified`: The device is running a valid version of the Chrome OS. * `Dev`: The devices's developer hardware switch is enabled. When booted, the device has a command line shell. For an example of a developer switch, see the [Chromebook developer information](https://www.chromium.org/chromium-os/developer-information-for-chrome-os-devices/samsung-series-5-chromebook#TOC-Developer-switch).",
"type": "string"
Expand Down
21 changes: 21 additions & 0 deletions src/apis/admin/directory_v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,23 @@ export namespace admin_directory_v1 {
*/
severity?: string | null;
}
/**
* Information about the device's backlights.
*/
export interface Schema$BacklightInfo {
/**
* Output only. Current brightness of the backlight, between 0 and max_brightness.
*/
brightness?: number | null;
/**
* Output only. Maximum brightness for the backlight.
*/
maxBrightness?: number | null;
/**
* Output only. Path to this backlight on the system. Useful if the caller needs to correlate with other information.
*/
path?: string | null;
}
/**
* A request for changing the status of a batch of ChromeOS devices.
*/
Expand Down Expand Up @@ -632,6 +649,10 @@ export namespace admin_directory_v1 {
* (Read-only) The timestamp after which the device will stop receiving Chrome updates or support
*/
autoUpdateExpiration?: string | null;
/**
* Output only. Contains backlight information for the device.
*/
backlightInfo?: Schema$BacklightInfo[];
/**
* The boot mode for the device. The possible values are: * `Verified`: The device is running a valid version of the Chrome OS. * `Dev`: The devices's developer hardware switch is enabled. When booted, the device has a command line shell. For an example of a developer switch, see the [Chromebook developer information](https://www.chromium.org/chromium-os/developer-information-for-chrome-os-devices/samsung-series-5-chromebook#TOC-Developer-switch).
*/
Expand Down

0 comments on commit 939730c

Please sign in to comment.