From c3959391c493f4c22a6c358a6f682e4fca519982 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Thu, 6 Jun 2024 01:35:29 +0000 Subject: [PATCH] feat(chromemanagement): update the API #### chromemanagement:v1 The following keys were added: - schemas.GoogleChromeManagementV1AppReport.description - schemas.GoogleChromeManagementV1AppReport.id - schemas.GoogleChromeManagementV1AppReport.properties.reportTime.description - schemas.GoogleChromeManagementV1AppReport.properties.reportTime.format - schemas.GoogleChromeManagementV1AppReport.properties.reportTime.type - schemas.GoogleChromeManagementV1AppReport.properties.usageData.description - schemas.GoogleChromeManagementV1AppReport.properties.usageData.items.$ref - schemas.GoogleChromeManagementV1AppReport.properties.usageData.type - schemas.GoogleChromeManagementV1AppReport.type - schemas.GoogleChromeManagementV1AppUsageData.description - schemas.GoogleChromeManagementV1AppUsageData.id - schemas.GoogleChromeManagementV1AppUsageData.properties.appId.description - schemas.GoogleChromeManagementV1AppUsageData.properties.appId.type - schemas.GoogleChromeManagementV1AppUsageData.properties.appInstanceId.description - schemas.GoogleChromeManagementV1AppUsageData.properties.appInstanceId.type - schemas.GoogleChromeManagementV1AppUsageData.properties.appType.description - schemas.GoogleChromeManagementV1AppUsageData.properties.appType.enum - schemas.GoogleChromeManagementV1AppUsageData.properties.appType.enumDescriptions - schemas.GoogleChromeManagementV1AppUsageData.properties.appType.type - schemas.GoogleChromeManagementV1AppUsageData.properties.runningDuration.description - schemas.GoogleChromeManagementV1AppUsageData.properties.runningDuration.format - schemas.GoogleChromeManagementV1AppUsageData.properties.runningDuration.type - schemas.GoogleChromeManagementV1AppUsageData.type - schemas.GoogleChromeManagementV1TelemetryDevice.properties.appReport.description - schemas.GoogleChromeManagementV1TelemetryDevice.properties.appReport.items.$ref - schemas.GoogleChromeManagementV1TelemetryDevice.properties.appReport.readOnly - schemas.GoogleChromeManagementV1TelemetryDevice.properties.appReport.type - schemas.GoogleChromeManagementV1TelemetryUserDevice.properties.appReport.description - schemas.GoogleChromeManagementV1TelemetryUserDevice.properties.appReport.items.$ref - schemas.GoogleChromeManagementV1TelemetryUserDevice.properties.appReport.readOnly - schemas.GoogleChromeManagementV1TelemetryUserDevice.properties.appReport.type --- discovery/chromemanagement-v1.json | 97 +++++++++++++++++++++++++++++- src/apis/chromemanagement/v1.ts | 42 +++++++++++++ 2 files changed, 138 insertions(+), 1 deletion(-) diff --git a/discovery/chromemanagement-v1.json b/discovery/chromemanagement-v1.json index d0fdda6164..c82d0884f4 100644 --- a/discovery/chromemanagement-v1.json +++ b/discovery/chromemanagement-v1.json @@ -1172,7 +1172,7 @@ } } }, - "revision": "20240530", + "revision": "20240604", "rootUrl": "https://chromemanagement.googleapis.com/", "schemas": { "GoogleChromeManagementV1AndroidAppInfo": { @@ -1320,6 +1320,85 @@ }, "type": "object" }, + "GoogleChromeManagementV1AppReport": { + "description": "App report.", + "id": "GoogleChromeManagementV1AppReport", + "properties": { + "reportTime": { + "description": "Timestamp when the report was collected.", + "format": "google-datetime", + "type": "string" + }, + "usageData": { + "description": "App usage data.", + "items": { + "$ref": "GoogleChromeManagementV1AppUsageData" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleChromeManagementV1AppUsageData": { + "description": "App usage data.", + "id": "GoogleChromeManagementV1AppUsageData", + "properties": { + "appId": { + "description": "App id.", + "type": "string" + }, + "appInstanceId": { + "description": "Application instance id. This will be unique per window/instance.", + "type": "string" + }, + "appType": { + "description": "Type of app.", + "enum": [ + "TELEMETRY_APPLICATION_TYPE_UNSPECIFIED", + "APPLICATION_TYPE_ARC", + "APPLICATION_TYPE_BUILT_IN", + "APPLICATION_TYPE_CROSTINI", + "APPLICATION_TYPE_CHROME_APP", + "APPLICATION_TYPE_WEB", + "APPLICATION_TYPE_MAC_OS", + "APPLICATION_TYPE_PLUGIN_VM", + "APPLICATION_TYPE_STANDALONE_BROWSER", + "APPLICATION_TYPE_REMOTE", + "APPLICATION_TYPE_BOREALIS", + "APPLICATION_TYPE_SYSTEM_WEB", + "APPLICATION_TYPE_STANDALONE_BROWSER_CHROME_APP", + "APPLICATION_TYPE_EXTENSION", + "APPLICATION_TYPE_STANDALONE_BROWSER_EXTENSION", + "APPLICATION_TYPE_BRUSCHETTA" + ], + "enumDescriptions": [ + "Application type unknown.", + "Application type arc (Android app).", + "Application type built-in.", + "Application type Linux (via Crostini).", + "Application type Chrome app.", + "Application type web.", + "Application type Mac OS.", + "Application type Plugin VM.", + "Application type standalone browser (Lacros browser app).", + "Application type remote.", + "Application type borealis.", + "Application type system web.", + "Application type standalone browser chrome app (hosted in Lacros).", + "Application type extension.", + "Application type standalone browser extension.", + "Application type bruschetta." + ], + "type": "string" + }, + "runningDuration": { + "description": "App foreground running time.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, "GoogleChromeManagementV1AudioStatusReport": { "description": "Status data for storage. * This field is telemetry information and this will change over time as the device is utilized. * Data for this field is controlled via policy: [ReportDeviceAudioStatus](https://chromeenterprise.google/policies/#ReportDeviceAudioStatus) * Data Collection Frequency: 10 minutes * Default Data Reporting Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: No * Reported for affiliated users only: N/A * Granular permission needed: TELEMETRY_API_AUDIO_REPORT", "id": "GoogleChromeManagementV1AudioStatusReport", @@ -3771,6 +3850,14 @@ "description": "Telemetry data collected from a managed device. * Granular permission needed: TELEMETRY_API_DEVICE", "id": "GoogleChromeManagementV1TelemetryDevice", "properties": { + "appReport": { + "description": "Output only. App reports collected periodically sorted in a decreasing order of report_time.", + "items": { + "$ref": "GoogleChromeManagementV1AppReport" + }, + "readOnly": true, + "type": "array" + }, "audioStatusReport": { "description": "Output only. Audio reports collected periodically sorted in a decreasing order of report_time.", "items": { @@ -4302,6 +4389,14 @@ "description": "Telemetry data collected for a managed user and device. * Granular permission needed: TELEMETRY_API_DEVICE", "id": "GoogleChromeManagementV1TelemetryUserDevice", "properties": { + "appReport": { + "description": "Output only. App reports collected periodically sorted in a decreasing order of report_time.", + "items": { + "$ref": "GoogleChromeManagementV1AppReport" + }, + "readOnly": true, + "type": "array" + }, "audioStatusReport": { "description": "Output only. Audio reports collected periodically sorted in a decreasing order of report_time.", "items": { diff --git a/src/apis/chromemanagement/v1.ts b/src/apis/chromemanagement/v1.ts index 70d4cfc3e7..393699e8b3 100644 --- a/src/apis/chromemanagement/v1.ts +++ b/src/apis/chromemanagement/v1.ts @@ -223,6 +223,40 @@ export namespace chromemanagement_v1 { */ type?: string | null; } + /** + * App report. + */ + export interface Schema$GoogleChromeManagementV1AppReport { + /** + * Timestamp when the report was collected. + */ + reportTime?: string | null; + /** + * App usage data. + */ + usageData?: Schema$GoogleChromeManagementV1AppUsageData[]; + } + /** + * App usage data. + */ + export interface Schema$GoogleChromeManagementV1AppUsageData { + /** + * App id. + */ + appId?: string | null; + /** + * Application instance id. This will be unique per window/instance. + */ + appInstanceId?: string | null; + /** + * Type of app. + */ + appType?: string | null; + /** + * App foreground running time. + */ + runningDuration?: string | null; + } /** * Status data for storage. * This field is telemetry information and this will change over time as the device is utilized. * Data for this field is controlled via policy: [ReportDeviceAudioStatus](https://chromeenterprise.google/policies/#ReportDeviceAudioStatus) * Data Collection Frequency: 10 minutes * Default Data Reporting Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: No * Reported for affiliated users only: N/A * Granular permission needed: TELEMETRY_API_AUDIO_REPORT */ @@ -1641,6 +1675,10 @@ export namespace chromemanagement_v1 { * Telemetry data collected from a managed device. * Granular permission needed: TELEMETRY_API_DEVICE */ export interface Schema$GoogleChromeManagementV1TelemetryDevice { + /** + * Output only. App reports collected periodically sorted in a decreasing order of report_time. + */ + appReport?: Schema$GoogleChromeManagementV1AppReport[]; /** * Output only. Audio reports collected periodically sorted in a decreasing order of report_time. */ @@ -1960,6 +1998,10 @@ export namespace chromemanagement_v1 { * Telemetry data collected for a managed user and device. * Granular permission needed: TELEMETRY_API_DEVICE */ export interface Schema$GoogleChromeManagementV1TelemetryUserDevice { + /** + * Output only. App reports collected periodically sorted in a decreasing order of report_time. + */ + appReport?: Schema$GoogleChromeManagementV1AppReport[]; /** * Output only. Audio reports collected periodically sorted in a decreasing order of report_time. */