@maxim_mazurok/gapi.client.chromemanagement-v1 0.0.20220811
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +994 -0
- package/package.json +20 -0
- package/readme.md +74 -0
- package/tests.ts +117 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,994 @@
|
|
|
1
|
+
/* Type definitions for non-npm package Chrome Management API v1 0.0 */
|
|
2
|
+
// Project: http://developers.google.com/chrome/management/
|
|
3
|
+
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
|
|
4
|
+
// Nick Amoscato <https://github.com/namoscato>
|
|
5
|
+
// Declan Vong <https://github.com/declanvong>
|
|
6
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
7
|
+
// TypeScript Version: 2.8
|
|
8
|
+
|
|
9
|
+
// IMPORTANT
|
|
10
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
11
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
12
|
+
// Generated from: https://chromemanagement.googleapis.com/$discovery/rest?version=v1
|
|
13
|
+
// Revision: 20220811
|
|
14
|
+
|
|
15
|
+
/// <reference types="gapi.client" />
|
|
16
|
+
|
|
17
|
+
declare namespace gapi.client {
|
|
18
|
+
/** Load Chrome Management API v1 */
|
|
19
|
+
function load(urlOrObject: "https://chromemanagement.googleapis.com/$discovery/rest?version=v1"): Promise<void>;
|
|
20
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
21
|
+
function load(name: "chromemanagement", version: "v1"): Promise<void>;
|
|
22
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
23
|
+
function load(name: "chromemanagement", version: "v1", callback: () => any): void;
|
|
24
|
+
|
|
25
|
+
namespace chromemanagement {
|
|
26
|
+
interface GoogleChromeManagementV1AndroidAppInfo {
|
|
27
|
+
/** Output only. Permissions requested by an Android app. */
|
|
28
|
+
permissions?: GoogleChromeManagementV1AndroidAppPermission[];
|
|
29
|
+
}
|
|
30
|
+
interface GoogleChromeManagementV1AndroidAppPermission {
|
|
31
|
+
/** Output only. The type of the permission. */
|
|
32
|
+
type?: string;
|
|
33
|
+
}
|
|
34
|
+
interface GoogleChromeManagementV1AppDetails {
|
|
35
|
+
/** Output only. Android app information. */
|
|
36
|
+
androidAppInfo?: GoogleChromeManagementV1AndroidAppInfo;
|
|
37
|
+
/**
|
|
38
|
+
* Output only. Unique store identifier for the item. Examples: "gmbmikajjgmnabiglmofipeabaddhgne" for the Save to Google Drive Chrome extension, "com.google.android.apps.docs" for the
|
|
39
|
+
* Google Drive Android app.
|
|
40
|
+
*/
|
|
41
|
+
appId?: string;
|
|
42
|
+
/** Output only. Chrome Web Store app information. */
|
|
43
|
+
chromeAppInfo?: GoogleChromeManagementV1ChromeAppInfo;
|
|
44
|
+
/** Output only. App's description. */
|
|
45
|
+
description?: string;
|
|
46
|
+
/** Output only. The uri for the detail page of the item. */
|
|
47
|
+
detailUri?: string;
|
|
48
|
+
/** Output only. App's display name. */
|
|
49
|
+
displayName?: string;
|
|
50
|
+
/** Output only. First published time. */
|
|
51
|
+
firstPublishTime?: string;
|
|
52
|
+
/** Output only. Home page or Website uri. */
|
|
53
|
+
homepageUri?: string;
|
|
54
|
+
/** Output only. A link to an image that can be used as an icon for the product. */
|
|
55
|
+
iconUri?: string;
|
|
56
|
+
/** Output only. Indicates if the app has to be paid for OR has paid content. */
|
|
57
|
+
isPaidApp?: boolean;
|
|
58
|
+
/** Output only. Latest published time. */
|
|
59
|
+
latestPublishTime?: string;
|
|
60
|
+
/** Output only. Format: name=customers/{customer_id}/apps/{chrome|android|web}/{app_id}@{version} */
|
|
61
|
+
name?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Output only. The URI pointing to the privacy policy of the app, if it was provided by the developer. Version-specific field that will only be set when the requested app version is
|
|
64
|
+
* found.
|
|
65
|
+
*/
|
|
66
|
+
privacyPolicyUri?: string;
|
|
67
|
+
/** Output only. The publisher of the item. */
|
|
68
|
+
publisher?: string;
|
|
69
|
+
/** Output only. Number of reviews received. Chrome Web Store review information will always be for the latest version of an app. */
|
|
70
|
+
reviewNumber?: string;
|
|
71
|
+
/** Output only. The rating of the app (on 5 stars). Chrome Web Store review information will always be for the latest version of an app. */
|
|
72
|
+
reviewRating?: number;
|
|
73
|
+
/** Output only. App version. A new revision is committed whenever a new version of the app is published. */
|
|
74
|
+
revisionId?: string;
|
|
75
|
+
/** Output only. Information about a partial service error if applicable. */
|
|
76
|
+
serviceError?: GoogleRpcStatus;
|
|
77
|
+
/** Output only. App type. */
|
|
78
|
+
type?: string;
|
|
79
|
+
}
|
|
80
|
+
interface GoogleChromeManagementV1AudioStatusReport {
|
|
81
|
+
/** Output only. Active input device's name. */
|
|
82
|
+
inputDevice?: string;
|
|
83
|
+
/** Output only. Active input device's gain in [0, 100]. */
|
|
84
|
+
inputGain?: number;
|
|
85
|
+
/** Output only. Is active input device mute or not. */
|
|
86
|
+
inputMute?: boolean;
|
|
87
|
+
/** Output only. Active output device's name. */
|
|
88
|
+
outputDevice?: string;
|
|
89
|
+
/** Output only. Is active output device mute or not. */
|
|
90
|
+
outputMute?: boolean;
|
|
91
|
+
/** Output only. Active output device's volume in [0, 100]. */
|
|
92
|
+
outputVolume?: number;
|
|
93
|
+
/** Output only. Timestamp of when the sample was collected on device. */
|
|
94
|
+
reportTime?: string;
|
|
95
|
+
}
|
|
96
|
+
interface GoogleChromeManagementV1BatteryInfo {
|
|
97
|
+
/** Output only. Design capacity (mAmpere-hours). */
|
|
98
|
+
designCapacity?: string;
|
|
99
|
+
/** Output only. Designed minimum output voltage (mV) */
|
|
100
|
+
designMinVoltage?: number;
|
|
101
|
+
/** Output only. The date the battery was manufactured. */
|
|
102
|
+
manufactureDate?: GoogleTypeDate;
|
|
103
|
+
/** Output only. Battery manufacturer. */
|
|
104
|
+
manufacturer?: string;
|
|
105
|
+
/** Output only. Battery serial number. */
|
|
106
|
+
serialNumber?: string;
|
|
107
|
+
/** Output only. Technology of the battery. Example: Li-ion */
|
|
108
|
+
technology?: string;
|
|
109
|
+
}
|
|
110
|
+
interface GoogleChromeManagementV1BatterySampleReport {
|
|
111
|
+
/** Output only. Battery charge percentage. */
|
|
112
|
+
chargeRate?: number;
|
|
113
|
+
/** Output only. Battery current (mA). */
|
|
114
|
+
current?: string;
|
|
115
|
+
/** Output only. The battery discharge rate measured in mW. Positive if the battery is being discharged, negative if it's being charged. */
|
|
116
|
+
dischargeRate?: number;
|
|
117
|
+
/** Output only. Battery remaining capacity (mAmpere-hours). */
|
|
118
|
+
remainingCapacity?: string;
|
|
119
|
+
/** Output only. Timestamp of when the sample was collected on device */
|
|
120
|
+
reportTime?: string;
|
|
121
|
+
/** Output only. Battery status read from sysfs. Example: Discharging */
|
|
122
|
+
status?: string;
|
|
123
|
+
/** Output only. Temperature in Celsius degrees. */
|
|
124
|
+
temperature?: number;
|
|
125
|
+
/** Output only. Battery voltage (millivolt). */
|
|
126
|
+
voltage?: string;
|
|
127
|
+
}
|
|
128
|
+
interface GoogleChromeManagementV1BatteryStatusReport {
|
|
129
|
+
/** Output only. Battery health. */
|
|
130
|
+
batteryHealth?: string;
|
|
131
|
+
/** Output only. Cycle count. */
|
|
132
|
+
cycleCount?: number;
|
|
133
|
+
/** Output only. Full charge capacity (mAmpere-hours). */
|
|
134
|
+
fullChargeCapacity?: string;
|
|
135
|
+
/** Output only. Timestamp of when the sample was collected on device */
|
|
136
|
+
reportTime?: string;
|
|
137
|
+
/** Output only. Sampling data for the battery sorted in a decreasing order of report_time. */
|
|
138
|
+
sample?: GoogleChromeManagementV1BatterySampleReport[];
|
|
139
|
+
/** Output only. Battery serial number. */
|
|
140
|
+
serialNumber?: string;
|
|
141
|
+
}
|
|
142
|
+
interface GoogleChromeManagementV1BrowserVersion {
|
|
143
|
+
/** Output only. The release channel of the installed browser. */
|
|
144
|
+
channel?: string;
|
|
145
|
+
/** Output only. Count grouped by device_system and major version */
|
|
146
|
+
count?: string;
|
|
147
|
+
/** Output only. Version of the system-specified operating system. */
|
|
148
|
+
deviceOsVersion?: string;
|
|
149
|
+
/** Output only. The device operating system. */
|
|
150
|
+
system?: string;
|
|
151
|
+
/** Output only. The full version of the installed browser. */
|
|
152
|
+
version?: string;
|
|
153
|
+
}
|
|
154
|
+
interface GoogleChromeManagementV1ChromeAppInfo {
|
|
155
|
+
/** Output only. Whether the app or extension is built and maintained by Google. Version-specific field that will only be set when the requested app version is found. */
|
|
156
|
+
googleOwned?: boolean;
|
|
157
|
+
/** Output only. Whether the app or extension is in a published state in the Chrome Web Store. */
|
|
158
|
+
isCwsHosted?: boolean;
|
|
159
|
+
/** Output only. Whether the app is only for Kiosk mode on ChromeOS devices */
|
|
160
|
+
isKioskOnly?: boolean;
|
|
161
|
+
/** Output only. Whether the app or extension is a theme. */
|
|
162
|
+
isTheme?: boolean;
|
|
163
|
+
/** Output only. Whether this app is enabled for Kiosk mode on ChromeOS devices */
|
|
164
|
+
kioskEnabled?: boolean;
|
|
165
|
+
/** Output only. The minimum number of users using this app. */
|
|
166
|
+
minUserCount?: number;
|
|
167
|
+
/** Output only. Every custom permission requested by the app. Version-specific field that will only be set when the requested app version is found. */
|
|
168
|
+
permissions?: GoogleChromeManagementV1ChromeAppPermission[];
|
|
169
|
+
/**
|
|
170
|
+
* Output only. Every permission giving access to domains or broad host patterns. ( e.g. www.google.com). This includes the matches from content scripts as well as hosts in the
|
|
171
|
+
* permissions node of the manifest. Version-specific field that will only be set when the requested app version is found.
|
|
172
|
+
*/
|
|
173
|
+
siteAccess?: GoogleChromeManagementV1ChromeAppSiteAccess[];
|
|
174
|
+
/** Output only. The app developer has enabled support for their app. Version-specific field that will only be set when the requested app version is found. */
|
|
175
|
+
supportEnabled?: boolean;
|
|
176
|
+
}
|
|
177
|
+
interface GoogleChromeManagementV1ChromeAppPermission {
|
|
178
|
+
/** Output only. If available, whether this permissions grants the app/extension access to user data. */
|
|
179
|
+
accessUserData?: boolean;
|
|
180
|
+
/** Output only. If available, a URI to a page that has documentation for the current permission. */
|
|
181
|
+
documentationUri?: string;
|
|
182
|
+
/** Output only. The type of the permission. */
|
|
183
|
+
type?: string;
|
|
184
|
+
}
|
|
185
|
+
interface GoogleChromeManagementV1ChromeAppRequest {
|
|
186
|
+
/** Output only. Format: app_details=customers/{customer_id}/apps/chrome/{app_id} */
|
|
187
|
+
appDetails?: string;
|
|
188
|
+
/** Output only. Unique store identifier for the app. Example: "gmbmikajjgmnabiglmofipeabaddhgne" for the Save to Google Drive Chrome extension. */
|
|
189
|
+
appId?: string;
|
|
190
|
+
/** Output only. The uri for the detail page of the item. */
|
|
191
|
+
detailUri?: string;
|
|
192
|
+
/** Output only. App's display name. */
|
|
193
|
+
displayName?: string;
|
|
194
|
+
/** Output only. A link to an image that can be used as an icon for the product. */
|
|
195
|
+
iconUri?: string;
|
|
196
|
+
/** Output only. The timestamp of the most recently made request for this app. */
|
|
197
|
+
latestRequestTime?: string;
|
|
198
|
+
/** Output only. Total count of requests for this app. */
|
|
199
|
+
requestCount?: string;
|
|
200
|
+
}
|
|
201
|
+
interface GoogleChromeManagementV1ChromeAppSiteAccess {
|
|
202
|
+
/** Output only. This can contain very specific hosts, or patterns like "*.com" for instance. */
|
|
203
|
+
hostMatch?: string;
|
|
204
|
+
}
|
|
205
|
+
interface GoogleChromeManagementV1CountChromeAppRequestsResponse {
|
|
206
|
+
/** Token to specify the next page in the list. */
|
|
207
|
+
nextPageToken?: string;
|
|
208
|
+
/** Count of requested apps matching request. */
|
|
209
|
+
requestedApps?: GoogleChromeManagementV1ChromeAppRequest[];
|
|
210
|
+
/** Total number of matching app requests. */
|
|
211
|
+
totalSize?: number;
|
|
212
|
+
}
|
|
213
|
+
interface GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse {
|
|
214
|
+
/** The list of reports sorted by auto update expiration date in ascending order. */
|
|
215
|
+
deviceAueCountReports?: GoogleChromeManagementV1DeviceAueCountReport[];
|
|
216
|
+
}
|
|
217
|
+
interface GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse {
|
|
218
|
+
/** Number of ChromeOS devices have not synced policies in the past 28 days. */
|
|
219
|
+
noRecentPolicySyncCount?: string;
|
|
220
|
+
/** Number of ChromeOS devices that have not seen any user activity in the past 28 days. */
|
|
221
|
+
noRecentUserActivityCount?: string;
|
|
222
|
+
/** Number of devices whose OS version is not compliant. */
|
|
223
|
+
osVersionNotCompliantCount?: string;
|
|
224
|
+
/** Number of devices that are pending an OS update. */
|
|
225
|
+
pendingUpdate?: string;
|
|
226
|
+
/** Number of devices that are unable to apply a policy due to an OS version mismatch. */
|
|
227
|
+
unsupportedPolicyCount?: string;
|
|
228
|
+
}
|
|
229
|
+
interface GoogleChromeManagementV1CountChromeVersionsResponse {
|
|
230
|
+
/** List of all browser versions and their install counts. */
|
|
231
|
+
browserVersions?: GoogleChromeManagementV1BrowserVersion[];
|
|
232
|
+
/** Token to specify the next page of the request. */
|
|
233
|
+
nextPageToken?: string;
|
|
234
|
+
/** Total number browser versions matching request. */
|
|
235
|
+
totalSize?: number;
|
|
236
|
+
}
|
|
237
|
+
interface GoogleChromeManagementV1CountInstalledAppsResponse {
|
|
238
|
+
/** List of installed apps matching request. */
|
|
239
|
+
installedApps?: GoogleChromeManagementV1InstalledApp[];
|
|
240
|
+
/** Token to specify the next page of the request. */
|
|
241
|
+
nextPageToken?: string;
|
|
242
|
+
/** Total number of installed apps matching request. */
|
|
243
|
+
totalSize?: number;
|
|
244
|
+
}
|
|
245
|
+
interface GoogleChromeManagementV1CpuInfo {
|
|
246
|
+
/** Output only. The CPU architecture. */
|
|
247
|
+
architecture?: string;
|
|
248
|
+
/** Output only. Whether keylocker is configured.`TRUE` = Enabled; `FALSE` = disabled. Only reported if keylockerSupported = `TRUE`. */
|
|
249
|
+
keylockerConfigured?: boolean;
|
|
250
|
+
/** Output only. Whether keylocker is supported. */
|
|
251
|
+
keylockerSupported?: boolean;
|
|
252
|
+
/** Output only. The max CPU clock speed in kHz. */
|
|
253
|
+
maxClockSpeed?: number;
|
|
254
|
+
/** Output only. The CPU model name. Example: Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz */
|
|
255
|
+
model?: string;
|
|
256
|
+
}
|
|
257
|
+
interface GoogleChromeManagementV1CpuStatusReport {
|
|
258
|
+
/** Output only. CPU temperature sample info per CPU core in Celsius */
|
|
259
|
+
cpuTemperatureInfo?: GoogleChromeManagementV1CpuTemperatureInfo[];
|
|
260
|
+
/** Output only. Sample of CPU utilization (0-100 percent). */
|
|
261
|
+
cpuUtilizationPct?: number;
|
|
262
|
+
/** Output only. The timestamp in milliseconds representing time at which this report was sampled. */
|
|
263
|
+
reportTime?: string;
|
|
264
|
+
/** Output only. Frequency the report is sampled. */
|
|
265
|
+
sampleFrequency?: string;
|
|
266
|
+
}
|
|
267
|
+
interface GoogleChromeManagementV1CpuTemperatureInfo {
|
|
268
|
+
/** Output only. CPU label. Example: Core 0 */
|
|
269
|
+
label?: string;
|
|
270
|
+
/** Output only. CPU temperature in Celsius. */
|
|
271
|
+
temperatureCelsius?: number;
|
|
272
|
+
}
|
|
273
|
+
interface GoogleChromeManagementV1Device {
|
|
274
|
+
/** Output only. The ID of the device that reported this Chrome browser information. */
|
|
275
|
+
deviceId?: string;
|
|
276
|
+
/** Output only. The name of the machine within its local network. */
|
|
277
|
+
machine?: string;
|
|
278
|
+
}
|
|
279
|
+
interface GoogleChromeManagementV1DeviceAueCountReport {
|
|
280
|
+
/** Enum value of month corresponding to the auto update expiration date in UTC time zone. If the device is already expired, this field is empty. */
|
|
281
|
+
aueMonth?: string;
|
|
282
|
+
/** Int value of year corresponding to the Auto Update Expiration date in UTC time zone. If the device is already expired, this field is empty. */
|
|
283
|
+
aueYear?: string;
|
|
284
|
+
/** Count of devices of this model. */
|
|
285
|
+
count?: string;
|
|
286
|
+
/** Boolean value for whether or not the device has already expired. */
|
|
287
|
+
expired?: boolean;
|
|
288
|
+
/** Public model name of the devices. */
|
|
289
|
+
model?: string;
|
|
290
|
+
}
|
|
291
|
+
interface GoogleChromeManagementV1DiskInfo {
|
|
292
|
+
/** Output only. Number of bytes read since last boot. */
|
|
293
|
+
bytesReadThisSession?: string;
|
|
294
|
+
/** Output only. Number of bytes written since last boot. */
|
|
295
|
+
bytesWrittenThisSession?: string;
|
|
296
|
+
/** Output only. Time spent discarding since last boot. Discarding is writing to clear blocks which are no longer in use. Supported on kernels 4.18+. */
|
|
297
|
+
discardTimeThisSession?: string;
|
|
298
|
+
/** Output only. Disk health. */
|
|
299
|
+
health?: string;
|
|
300
|
+
/** Output only. Counts the time the disk and queue were busy, so unlike the fields above, parallel requests are not counted multiple times. */
|
|
301
|
+
ioTimeThisSession?: string;
|
|
302
|
+
/** Output only. Disk manufacturer. */
|
|
303
|
+
manufacturer?: string;
|
|
304
|
+
/** Output only. Disk model. */
|
|
305
|
+
model?: string;
|
|
306
|
+
/** Output only. Time spent reading from disk since last boot. */
|
|
307
|
+
readTimeThisSession?: string;
|
|
308
|
+
/** Output only. Disk serial number. */
|
|
309
|
+
serialNumber?: string;
|
|
310
|
+
/** Output only. Disk size. */
|
|
311
|
+
sizeBytes?: string;
|
|
312
|
+
/** Output only. Disk type: eMMC / NVMe / ATA / SCSI. */
|
|
313
|
+
type?: string;
|
|
314
|
+
/** Output only. Disk volumes. */
|
|
315
|
+
volumeIds?: string[];
|
|
316
|
+
/** Output only. Time spent writing to disk since last boot. */
|
|
317
|
+
writeTimeThisSession?: string;
|
|
318
|
+
}
|
|
319
|
+
interface GoogleChromeManagementV1DisplayInfo {
|
|
320
|
+
/** Output only. Represents the graphics card device id. */
|
|
321
|
+
deviceId?: string;
|
|
322
|
+
/** Output only. Indicates if display is internal or not. */
|
|
323
|
+
isInternal?: boolean;
|
|
324
|
+
/** Output only. Refresh rate in Hz. */
|
|
325
|
+
refreshRate?: number;
|
|
326
|
+
/** Output only. Resolution height in pixels. */
|
|
327
|
+
resolutionHeight?: number;
|
|
328
|
+
/** Output only. Resolution width in pixels. */
|
|
329
|
+
resolutionWidth?: number;
|
|
330
|
+
}
|
|
331
|
+
interface GoogleChromeManagementV1FindInstalledAppDevicesResponse {
|
|
332
|
+
/** A list of devices which have the app installed. Sorted in ascending alphabetical order on the Device.machine field. */
|
|
333
|
+
devices?: GoogleChromeManagementV1Device[];
|
|
334
|
+
/** Token to specify the next page of the request. */
|
|
335
|
+
nextPageToken?: string;
|
|
336
|
+
/** Total number of devices matching request. */
|
|
337
|
+
totalSize?: number;
|
|
338
|
+
}
|
|
339
|
+
interface GoogleChromeManagementV1GraphicsAdapterInfo {
|
|
340
|
+
/** Output only. Adapter name. Example: Mesa DRI Intel(R) UHD Graphics 620 (Kabylake GT2). */
|
|
341
|
+
adapter?: string;
|
|
342
|
+
/** Output only. Represents the graphics card device id. */
|
|
343
|
+
deviceId?: string;
|
|
344
|
+
/** Output only. Version of the GPU driver. */
|
|
345
|
+
driverVersion?: string;
|
|
346
|
+
}
|
|
347
|
+
interface GoogleChromeManagementV1GraphicsInfo {
|
|
348
|
+
/** Output only. Information about the graphics adapter (GPU). */
|
|
349
|
+
adapterInfo?: GoogleChromeManagementV1GraphicsAdapterInfo;
|
|
350
|
+
}
|
|
351
|
+
interface GoogleChromeManagementV1GraphicsStatusReport {
|
|
352
|
+
/** Output only. Information about the displays for the device. */
|
|
353
|
+
displays?: GoogleChromeManagementV1DisplayInfo[];
|
|
354
|
+
/** Output only. Time at which the graphics data was reported. */
|
|
355
|
+
reportTime?: string;
|
|
356
|
+
}
|
|
357
|
+
interface GoogleChromeManagementV1HttpsLatencyRoutineData {
|
|
358
|
+
/** Output only. HTTPS latency if routine succeeded or failed because of HIGH_LATENCY or VERY_HIGH_LATENCY. */
|
|
359
|
+
latency?: string;
|
|
360
|
+
/** Output only. HTTPS latency routine problem if a problem occurred. */
|
|
361
|
+
problem?: string;
|
|
362
|
+
}
|
|
363
|
+
interface GoogleChromeManagementV1InstalledApp {
|
|
364
|
+
/**
|
|
365
|
+
* Output only. Unique identifier of the app. For Chrome apps and extensions, the 32-character id (e.g. ehoadneljpdggcbbknedodolkkjodefl). For Android apps, the package name (e.g.
|
|
366
|
+
* com.evernote).
|
|
367
|
+
*/
|
|
368
|
+
appId?: string;
|
|
369
|
+
/** Output only. How the app was installed. */
|
|
370
|
+
appInstallType?: string;
|
|
371
|
+
/** Output only. Source of the installed app. */
|
|
372
|
+
appSource?: string;
|
|
373
|
+
/** Output only. Type of the app. */
|
|
374
|
+
appType?: string;
|
|
375
|
+
/** Output only. Count of browser devices with this app installed. */
|
|
376
|
+
browserDeviceCount?: string;
|
|
377
|
+
/** Output only. Description of the installed app. */
|
|
378
|
+
description?: string;
|
|
379
|
+
/** Output only. Whether the app is disabled. */
|
|
380
|
+
disabled?: boolean;
|
|
381
|
+
/** Output only. Name of the installed app. */
|
|
382
|
+
displayName?: string;
|
|
383
|
+
/** Output only. Homepage uri of the installed app. */
|
|
384
|
+
homepageUri?: string;
|
|
385
|
+
/** Output only. Count of ChromeOS users with this app installed. */
|
|
386
|
+
osUserCount?: string;
|
|
387
|
+
/** Output only. Permissions of the installed app. */
|
|
388
|
+
permissions?: string[];
|
|
389
|
+
}
|
|
390
|
+
interface GoogleChromeManagementV1ListTelemetryDevicesResponse {
|
|
391
|
+
/** Telemetry devices returned in the response. */
|
|
392
|
+
devices?: GoogleChromeManagementV1TelemetryDevice[];
|
|
393
|
+
/** Token to specify next page in the list. */
|
|
394
|
+
nextPageToken?: string;
|
|
395
|
+
}
|
|
396
|
+
interface GoogleChromeManagementV1MemoryInfo {
|
|
397
|
+
/** Output only. Amount of available RAM in bytes. */
|
|
398
|
+
availableRamBytes?: string;
|
|
399
|
+
/** Output only. Total memory encryption info for the device. */
|
|
400
|
+
totalMemoryEncryption?: GoogleChromeManagementV1TotalMemoryEncryptionInfo;
|
|
401
|
+
/** Output only. Total RAM in bytes. */
|
|
402
|
+
totalRamBytes?: string;
|
|
403
|
+
}
|
|
404
|
+
interface GoogleChromeManagementV1MemoryStatusReport {
|
|
405
|
+
/** Output only. Number of page faults during this collection */
|
|
406
|
+
pageFaults?: number;
|
|
407
|
+
/** Output only. The timestamp in milliseconds representing time at which this report was sampled. */
|
|
408
|
+
reportTime?: string;
|
|
409
|
+
/** Output only. Frequency the report is sampled. */
|
|
410
|
+
sampleFrequency?: string;
|
|
411
|
+
/** Output only. Amount of free RAM in bytes (unreliable due to Garbage Collection). */
|
|
412
|
+
systemRamFreeBytes?: string;
|
|
413
|
+
}
|
|
414
|
+
interface GoogleChromeManagementV1NetworkDevice {
|
|
415
|
+
/** Output only. The integrated circuit card ID associated with the device's sim card. */
|
|
416
|
+
iccid?: string;
|
|
417
|
+
/** Output only. IMEI (if applicable) of the corresponding network device. */
|
|
418
|
+
imei?: string;
|
|
419
|
+
/** Output only. MAC address (if applicable) of the corresponding network device. */
|
|
420
|
+
macAddress?: string;
|
|
421
|
+
/** Output only. The mobile directory number associated with the device's sim card. */
|
|
422
|
+
mdn?: string;
|
|
423
|
+
/** Output only. MEID (if applicable) of the corresponding network device. */
|
|
424
|
+
meid?: string;
|
|
425
|
+
/** Output only. Network device type. */
|
|
426
|
+
type?: string;
|
|
427
|
+
}
|
|
428
|
+
interface GoogleChromeManagementV1NetworkDiagnosticsReport {
|
|
429
|
+
/** Output only. HTTPS latency test data. */
|
|
430
|
+
httpsLatencyData?: GoogleChromeManagementV1HttpsLatencyRoutineData;
|
|
431
|
+
/** Output only. Timestamp of when the diagnostics were collected. */
|
|
432
|
+
reportTime?: string;
|
|
433
|
+
}
|
|
434
|
+
interface GoogleChromeManagementV1NetworkInfo {
|
|
435
|
+
/** Output only. List of network devices. */
|
|
436
|
+
networkDevices?: GoogleChromeManagementV1NetworkDevice[];
|
|
437
|
+
}
|
|
438
|
+
interface GoogleChromeManagementV1NetworkStatusReport {
|
|
439
|
+
/** Output only. Current connection state of the network. */
|
|
440
|
+
connectionState?: string;
|
|
441
|
+
/** Output only. Network connection type. */
|
|
442
|
+
connectionType?: string;
|
|
443
|
+
/** Output only. Whether the wifi encryption key is turned off. */
|
|
444
|
+
encryptionOn?: boolean;
|
|
445
|
+
/** Output only. Gateway IP address. */
|
|
446
|
+
gatewayIpAddress?: string;
|
|
447
|
+
/** Output only. Network connection guid. */
|
|
448
|
+
guid?: string;
|
|
449
|
+
/** Output only. LAN IP address. */
|
|
450
|
+
lanIpAddress?: string;
|
|
451
|
+
/** Output only. Receiving bit rate measured in Megabits per second. */
|
|
452
|
+
receivingBitRateMbps?: string;
|
|
453
|
+
/** Output only. Time at which the network state was reported. */
|
|
454
|
+
reportTime?: string;
|
|
455
|
+
/** Output only. Frequency the report is sampled. */
|
|
456
|
+
sampleFrequency?: string;
|
|
457
|
+
/** Output only. Signal strength for wireless networks measured in decibels. */
|
|
458
|
+
signalStrengthDbm?: number;
|
|
459
|
+
/** Output only. Transmission bit rate measured in Megabits per second. */
|
|
460
|
+
transmissionBitRateMbps?: string;
|
|
461
|
+
/** Output only. Transmission power measured in decibels. */
|
|
462
|
+
transmissionPowerDbm?: number;
|
|
463
|
+
/** Output only. Wifi link quality. Value ranges from [0, 70]. 0 indicates no signal and 70 indicates a strong signal. */
|
|
464
|
+
wifiLinkQuality?: string;
|
|
465
|
+
/** Output only. Wifi power management enabled */
|
|
466
|
+
wifiPowerManagementEnabled?: boolean;
|
|
467
|
+
}
|
|
468
|
+
interface GoogleChromeManagementV1OsUpdateStatus {
|
|
469
|
+
/** Output only. Timestamp of the last reboot. */
|
|
470
|
+
lastRebootTime?: string;
|
|
471
|
+
/** Output only. Timestamp of the last update check. */
|
|
472
|
+
lastUpdateCheckTime?: string;
|
|
473
|
+
/** Output only. Timestamp of the last successful update. */
|
|
474
|
+
lastUpdateTime?: string;
|
|
475
|
+
/**
|
|
476
|
+
* Output only. New platform version of the os image being downloaded and applied. It is only set when update status is OS_IMAGE_DOWNLOAD_IN_PROGRESS or OS_UPDATE_NEED_REBOOT. Note
|
|
477
|
+
* this could be a dummy "0.0.0.0" for OS_UPDATE_NEED_REBOOT status for some edge cases, e.g. update engine is restarted without a reboot.
|
|
478
|
+
*/
|
|
479
|
+
newPlatformVersion?: string;
|
|
480
|
+
/** Output only. New requested platform version from the pending updated kiosk app. */
|
|
481
|
+
newRequestedPlatformVersion?: string;
|
|
482
|
+
/** Output only. Current state of the os update. */
|
|
483
|
+
updateState?: string;
|
|
484
|
+
}
|
|
485
|
+
interface GoogleChromeManagementV1StorageInfo {
|
|
486
|
+
/** The available space for user data storage in the device in bytes. */
|
|
487
|
+
availableDiskBytes?: string;
|
|
488
|
+
/** The total space for user data storage in the device in bytes. */
|
|
489
|
+
totalDiskBytes?: string;
|
|
490
|
+
/** Information for disk volumes */
|
|
491
|
+
volume?: GoogleChromeManagementV1StorageInfoDiskVolume[];
|
|
492
|
+
}
|
|
493
|
+
interface GoogleChromeManagementV1StorageInfoDiskVolume {
|
|
494
|
+
/** Free storage space in bytes. */
|
|
495
|
+
storageFreeBytes?: string;
|
|
496
|
+
/** Total storage space in bytes. */
|
|
497
|
+
storageTotalBytes?: string;
|
|
498
|
+
/** Disk volume id. */
|
|
499
|
+
volumeId?: string;
|
|
500
|
+
}
|
|
501
|
+
interface GoogleChromeManagementV1StorageStatusReport {
|
|
502
|
+
/** Output only. Reports on disk. */
|
|
503
|
+
disk?: GoogleChromeManagementV1DiskInfo[];
|
|
504
|
+
/** Output only. Timestamp of when the sample was collected on device */
|
|
505
|
+
reportTime?: string;
|
|
506
|
+
}
|
|
507
|
+
interface GoogleChromeManagementV1TelemetryDevice {
|
|
508
|
+
/** Output only. Audio reports collected periodically sorted in a decreasing order of report_time. */
|
|
509
|
+
audioStatusReport?: GoogleChromeManagementV1AudioStatusReport[];
|
|
510
|
+
/** Output only. Information on battery specs for the device. */
|
|
511
|
+
batteryInfo?: GoogleChromeManagementV1BatteryInfo[];
|
|
512
|
+
/** Output only. Battery reports collected periodically. */
|
|
513
|
+
batteryStatusReport?: GoogleChromeManagementV1BatteryStatusReport[];
|
|
514
|
+
/** Output only. Information regarding CPU specs for the device. */
|
|
515
|
+
cpuInfo?: GoogleChromeManagementV1CpuInfo[];
|
|
516
|
+
/** Output only. CPU status reports collected periodically sorted in a decreasing order of report_time. */
|
|
517
|
+
cpuStatusReport?: GoogleChromeManagementV1CpuStatusReport[];
|
|
518
|
+
/** Output only. Google Workspace Customer whose enterprise enrolled the device. */
|
|
519
|
+
customer?: string;
|
|
520
|
+
/** Output only. The unique Directory API ID of the device. This value is the same as the Admin Console's Directory API ID in the ChromeOS Devices tab */
|
|
521
|
+
deviceId?: string;
|
|
522
|
+
/** Output only. Contains information regarding Graphic peripherals for the device. */
|
|
523
|
+
graphicsInfo?: GoogleChromeManagementV1GraphicsInfo;
|
|
524
|
+
/** Output only. Graphics reports collected periodically. */
|
|
525
|
+
graphicsStatusReport?: GoogleChromeManagementV1GraphicsStatusReport[];
|
|
526
|
+
/** Output only. Information regarding memory specs for the device. */
|
|
527
|
+
memoryInfo?: GoogleChromeManagementV1MemoryInfo;
|
|
528
|
+
/** Output only. Memory status reports collected periodically sorted decreasing by report_time. */
|
|
529
|
+
memoryStatusReport?: GoogleChromeManagementV1MemoryStatusReport[];
|
|
530
|
+
/** Output only. Resource name of the device. */
|
|
531
|
+
name?: string;
|
|
532
|
+
/** Output only. Network diagnostics collected periodically. */
|
|
533
|
+
networkDiagnosticsReport?: GoogleChromeManagementV1NetworkDiagnosticsReport[];
|
|
534
|
+
/** Output only. Network devices information. */
|
|
535
|
+
networkInfo?: GoogleChromeManagementV1NetworkInfo;
|
|
536
|
+
/** Output only. Network specs collected periodically. */
|
|
537
|
+
networkStatusReport?: GoogleChromeManagementV1NetworkStatusReport[];
|
|
538
|
+
/** Output only. Organization unit ID of the device. */
|
|
539
|
+
orgUnitId?: string;
|
|
540
|
+
/** Output only. Contains relevant information regarding ChromeOS update status. */
|
|
541
|
+
osUpdateStatus?: GoogleChromeManagementV1OsUpdateStatus[];
|
|
542
|
+
/** Output only. Device serial number. This value is the same as the Admin Console's Serial Number in the ChromeOS Devices tab. */
|
|
543
|
+
serialNumber?: string;
|
|
544
|
+
/** Output only. Information of storage specs for the device. */
|
|
545
|
+
storageInfo?: GoogleChromeManagementV1StorageInfo;
|
|
546
|
+
/** Output only. Storage reports collected periodically. */
|
|
547
|
+
storageStatusReport?: GoogleChromeManagementV1StorageStatusReport[];
|
|
548
|
+
/** Output only. Information on Thunderbolt bus. */
|
|
549
|
+
thunderboltInfo?: GoogleChromeManagementV1ThunderboltInfo[];
|
|
550
|
+
}
|
|
551
|
+
interface GoogleChromeManagementV1ThunderboltInfo {
|
|
552
|
+
/** Security level of the Thunderbolt bus. */
|
|
553
|
+
securityLevel?: string;
|
|
554
|
+
}
|
|
555
|
+
interface GoogleChromeManagementV1TotalMemoryEncryptionInfo {
|
|
556
|
+
/** Memory encryption algorithm. */
|
|
557
|
+
encryptionAlgorithm?: string;
|
|
558
|
+
/** The state of memory encryption on the device. */
|
|
559
|
+
encryptionState?: string;
|
|
560
|
+
/** The length of the encryption keys. */
|
|
561
|
+
keyLength?: string;
|
|
562
|
+
/** The maximum number of keys that can be used for encryption. */
|
|
563
|
+
maxKeys?: string;
|
|
564
|
+
}
|
|
565
|
+
interface GoogleRpcStatus {
|
|
566
|
+
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
567
|
+
code?: number;
|
|
568
|
+
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
569
|
+
details?: Array<{ [P in string]: any }>;
|
|
570
|
+
/**
|
|
571
|
+
* A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the
|
|
572
|
+
* client.
|
|
573
|
+
*/
|
|
574
|
+
message?: string;
|
|
575
|
+
}
|
|
576
|
+
interface GoogleTypeDate {
|
|
577
|
+
/** Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. */
|
|
578
|
+
day?: number;
|
|
579
|
+
/** Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. */
|
|
580
|
+
month?: number;
|
|
581
|
+
/** Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. */
|
|
582
|
+
year?: number;
|
|
583
|
+
}
|
|
584
|
+
interface AndroidResource {
|
|
585
|
+
/** Get a specific app for a customer by its resource name. */
|
|
586
|
+
get(request?: {
|
|
587
|
+
/** V1 error format. */
|
|
588
|
+
"$.xgafv"?: string;
|
|
589
|
+
/** OAuth access token. */
|
|
590
|
+
access_token?: string;
|
|
591
|
+
/** Data format for response. */
|
|
592
|
+
alt?: string;
|
|
593
|
+
/** JSONP */
|
|
594
|
+
callback?: string;
|
|
595
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
596
|
+
fields?: string;
|
|
597
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
598
|
+
key?: string;
|
|
599
|
+
/**
|
|
600
|
+
* Required. The app for which details are being queried. Examples: "customers/my_customer/apps/chrome/gmbmikajjgmnabiglmofipeabaddhgne@2.1.2" for the Save to Google Drive Chrome
|
|
601
|
+
* extension version 2.1.2, "customers/my_customer/apps/android/com.google.android.apps.docs" for the Google Drive Android app's latest version.
|
|
602
|
+
*/
|
|
603
|
+
name: string;
|
|
604
|
+
/** OAuth 2.0 token for the current user. */
|
|
605
|
+
oauth_token?: string;
|
|
606
|
+
/** Returns response with indentations and line breaks. */
|
|
607
|
+
prettyPrint?: boolean;
|
|
608
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
609
|
+
quotaUser?: string;
|
|
610
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
611
|
+
upload_protocol?: string;
|
|
612
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
613
|
+
uploadType?: string;
|
|
614
|
+
}): Request<GoogleChromeManagementV1AppDetails>;
|
|
615
|
+
}
|
|
616
|
+
interface ChromeResource {
|
|
617
|
+
/** Get a specific app for a customer by its resource name. */
|
|
618
|
+
get(request?: {
|
|
619
|
+
/** V1 error format. */
|
|
620
|
+
"$.xgafv"?: string;
|
|
621
|
+
/** OAuth access token. */
|
|
622
|
+
access_token?: string;
|
|
623
|
+
/** Data format for response. */
|
|
624
|
+
alt?: string;
|
|
625
|
+
/** JSONP */
|
|
626
|
+
callback?: string;
|
|
627
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
628
|
+
fields?: string;
|
|
629
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
630
|
+
key?: string;
|
|
631
|
+
/**
|
|
632
|
+
* Required. The app for which details are being queried. Examples: "customers/my_customer/apps/chrome/gmbmikajjgmnabiglmofipeabaddhgne@2.1.2" for the Save to Google Drive Chrome
|
|
633
|
+
* extension version 2.1.2, "customers/my_customer/apps/android/com.google.android.apps.docs" for the Google Drive Android app's latest version.
|
|
634
|
+
*/
|
|
635
|
+
name: string;
|
|
636
|
+
/** OAuth 2.0 token for the current user. */
|
|
637
|
+
oauth_token?: string;
|
|
638
|
+
/** Returns response with indentations and line breaks. */
|
|
639
|
+
prettyPrint?: boolean;
|
|
640
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
641
|
+
quotaUser?: string;
|
|
642
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
643
|
+
upload_protocol?: string;
|
|
644
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
645
|
+
uploadType?: string;
|
|
646
|
+
}): Request<GoogleChromeManagementV1AppDetails>;
|
|
647
|
+
}
|
|
648
|
+
interface WebResource {
|
|
649
|
+
/** Get a specific app for a customer by its resource name. */
|
|
650
|
+
get(request?: {
|
|
651
|
+
/** V1 error format. */
|
|
652
|
+
"$.xgafv"?: string;
|
|
653
|
+
/** OAuth access token. */
|
|
654
|
+
access_token?: string;
|
|
655
|
+
/** Data format for response. */
|
|
656
|
+
alt?: string;
|
|
657
|
+
/** JSONP */
|
|
658
|
+
callback?: string;
|
|
659
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
660
|
+
fields?: string;
|
|
661
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
662
|
+
key?: string;
|
|
663
|
+
/**
|
|
664
|
+
* Required. The app for which details are being queried. Examples: "customers/my_customer/apps/chrome/gmbmikajjgmnabiglmofipeabaddhgne@2.1.2" for the Save to Google Drive Chrome
|
|
665
|
+
* extension version 2.1.2, "customers/my_customer/apps/android/com.google.android.apps.docs" for the Google Drive Android app's latest version.
|
|
666
|
+
*/
|
|
667
|
+
name: string;
|
|
668
|
+
/** OAuth 2.0 token for the current user. */
|
|
669
|
+
oauth_token?: string;
|
|
670
|
+
/** Returns response with indentations and line breaks. */
|
|
671
|
+
prettyPrint?: boolean;
|
|
672
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
673
|
+
quotaUser?: string;
|
|
674
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
675
|
+
upload_protocol?: string;
|
|
676
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
677
|
+
uploadType?: string;
|
|
678
|
+
}): Request<GoogleChromeManagementV1AppDetails>;
|
|
679
|
+
}
|
|
680
|
+
interface AppsResource {
|
|
681
|
+
/** Generate summary of app installation requests. */
|
|
682
|
+
countChromeAppRequests(request?: {
|
|
683
|
+
/** V1 error format. */
|
|
684
|
+
"$.xgafv"?: string;
|
|
685
|
+
/** OAuth access token. */
|
|
686
|
+
access_token?: string;
|
|
687
|
+
/** Data format for response. */
|
|
688
|
+
alt?: string;
|
|
689
|
+
/** JSONP */
|
|
690
|
+
callback?: string;
|
|
691
|
+
/** Required. Customer id or "my_customer" to use the customer associated to the account making the request. */
|
|
692
|
+
customer: string;
|
|
693
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
694
|
+
fields?: string;
|
|
695
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
696
|
+
key?: string;
|
|
697
|
+
/** OAuth 2.0 token for the current user. */
|
|
698
|
+
oauth_token?: string;
|
|
699
|
+
/** Field used to order results. Supported fields: * request_count * latest_request_time */
|
|
700
|
+
orderBy?: string;
|
|
701
|
+
/** The ID of the organizational unit. */
|
|
702
|
+
orgUnitId?: string;
|
|
703
|
+
/** Maximum number of results to return. Maximum and default are 50, anything above will be coerced to 50. */
|
|
704
|
+
pageSize?: number;
|
|
705
|
+
/** Token to specify the page of the request to be returned. */
|
|
706
|
+
pageToken?: string;
|
|
707
|
+
/** Returns response with indentations and line breaks. */
|
|
708
|
+
prettyPrint?: boolean;
|
|
709
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
710
|
+
quotaUser?: string;
|
|
711
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
712
|
+
upload_protocol?: string;
|
|
713
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
714
|
+
uploadType?: string;
|
|
715
|
+
}): Request<GoogleChromeManagementV1CountChromeAppRequestsResponse>;
|
|
716
|
+
android: AndroidResource;
|
|
717
|
+
chrome: ChromeResource;
|
|
718
|
+
web: WebResource;
|
|
719
|
+
}
|
|
720
|
+
interface ReportsResource {
|
|
721
|
+
/**
|
|
722
|
+
* Generate report of the number of devices expiring in each month of the selected time frame. Devices are grouped by auto update expiration date and model. Further information can be
|
|
723
|
+
* found [here](https://support.google.com/chrome/a/answer/10564947).
|
|
724
|
+
*/
|
|
725
|
+
countChromeDevicesReachingAutoExpirationDate(request?: {
|
|
726
|
+
/** V1 error format. */
|
|
727
|
+
"$.xgafv"?: string;
|
|
728
|
+
/** OAuth access token. */
|
|
729
|
+
access_token?: string;
|
|
730
|
+
/** Data format for response. */
|
|
731
|
+
alt?: string;
|
|
732
|
+
/** JSONP */
|
|
733
|
+
callback?: string;
|
|
734
|
+
/** Required. The customer ID or "my_customer" prefixed with "customers/". */
|
|
735
|
+
customer: string;
|
|
736
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
737
|
+
fields?: string;
|
|
738
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
739
|
+
key?: string;
|
|
740
|
+
/**
|
|
741
|
+
* Optional. Maximum expiration date in format yyyy-mm-dd in UTC timezone. If included returns all devices that have already expired and devices with auto expiration date equal to
|
|
742
|
+
* or earlier than the maximum date.
|
|
743
|
+
*/
|
|
744
|
+
maxAueDate?: string;
|
|
745
|
+
/**
|
|
746
|
+
* Optional. Maximum expiration date in format yyyy-mm-dd in UTC timezone. If included returns all devices that have already expired and devices with auto expiration date equal to
|
|
747
|
+
* or later than the minimum date.
|
|
748
|
+
*/
|
|
749
|
+
minAueDate?: string;
|
|
750
|
+
/** OAuth 2.0 token for the current user. */
|
|
751
|
+
oauth_token?: string;
|
|
752
|
+
/** Optional. The organizational unit ID, if omitted, will return data for all organizational units. */
|
|
753
|
+
orgUnitId?: string;
|
|
754
|
+
/** Returns response with indentations and line breaks. */
|
|
755
|
+
prettyPrint?: boolean;
|
|
756
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
757
|
+
quotaUser?: string;
|
|
758
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
759
|
+
upload_protocol?: string;
|
|
760
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
761
|
+
uploadType?: string;
|
|
762
|
+
}): Request<GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse>;
|
|
763
|
+
/**
|
|
764
|
+
* Counts of ChromeOS devices that have not synced policies or have lacked user activity in the past 28 days, are out of date, or are not complaint. Further information can be found
|
|
765
|
+
* here https://support.google.com/chrome/a/answer/10564947
|
|
766
|
+
*/
|
|
767
|
+
countChromeDevicesThatNeedAttention(request?: {
|
|
768
|
+
/** V1 error format. */
|
|
769
|
+
"$.xgafv"?: string;
|
|
770
|
+
/** OAuth access token. */
|
|
771
|
+
access_token?: string;
|
|
772
|
+
/** Data format for response. */
|
|
773
|
+
alt?: string;
|
|
774
|
+
/** JSONP */
|
|
775
|
+
callback?: string;
|
|
776
|
+
/** Required. The customer ID or "my_customer" prefixed with "customers/". */
|
|
777
|
+
customer: string;
|
|
778
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
779
|
+
fields?: string;
|
|
780
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
781
|
+
key?: string;
|
|
782
|
+
/** OAuth 2.0 token for the current user. */
|
|
783
|
+
oauth_token?: string;
|
|
784
|
+
/** Optional. The ID of the organizational unit. If omitted, all data will be returned. */
|
|
785
|
+
orgUnitId?: string;
|
|
786
|
+
/** Returns response with indentations and line breaks. */
|
|
787
|
+
prettyPrint?: boolean;
|
|
788
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
789
|
+
quotaUser?: string;
|
|
790
|
+
/** Required. Mask of the fields that should be populated in the returned report. */
|
|
791
|
+
readMask?: string;
|
|
792
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
793
|
+
upload_protocol?: string;
|
|
794
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
795
|
+
uploadType?: string;
|
|
796
|
+
}): Request<GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse>;
|
|
797
|
+
/** Generate report of installed Chrome versions. */
|
|
798
|
+
countChromeVersions(request?: {
|
|
799
|
+
/** V1 error format. */
|
|
800
|
+
"$.xgafv"?: string;
|
|
801
|
+
/** OAuth access token. */
|
|
802
|
+
access_token?: string;
|
|
803
|
+
/** Data format for response. */
|
|
804
|
+
alt?: string;
|
|
805
|
+
/** JSONP */
|
|
806
|
+
callback?: string;
|
|
807
|
+
/** Required. Customer id or "my_customer" to use the customer associated to the account making the request. */
|
|
808
|
+
customer: string;
|
|
809
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
810
|
+
fields?: string;
|
|
811
|
+
/** Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Supported filter fields: * last_active_date */
|
|
812
|
+
filter?: string;
|
|
813
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
814
|
+
key?: string;
|
|
815
|
+
/** OAuth 2.0 token for the current user. */
|
|
816
|
+
oauth_token?: string;
|
|
817
|
+
/** The ID of the organizational unit. */
|
|
818
|
+
orgUnitId?: string;
|
|
819
|
+
/** Maximum number of results to return. Maximum and default are 100. */
|
|
820
|
+
pageSize?: number;
|
|
821
|
+
/** Token to specify the page of the request to be returned. */
|
|
822
|
+
pageToken?: string;
|
|
823
|
+
/** Returns response with indentations and line breaks. */
|
|
824
|
+
prettyPrint?: boolean;
|
|
825
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
826
|
+
quotaUser?: string;
|
|
827
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
828
|
+
upload_protocol?: string;
|
|
829
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
830
|
+
uploadType?: string;
|
|
831
|
+
}): Request<GoogleChromeManagementV1CountChromeVersionsResponse>;
|
|
832
|
+
/** Generate report of app installations. */
|
|
833
|
+
countInstalledApps(request?: {
|
|
834
|
+
/** V1 error format. */
|
|
835
|
+
"$.xgafv"?: string;
|
|
836
|
+
/** OAuth access token. */
|
|
837
|
+
access_token?: string;
|
|
838
|
+
/** Data format for response. */
|
|
839
|
+
alt?: string;
|
|
840
|
+
/** JSONP */
|
|
841
|
+
callback?: string;
|
|
842
|
+
/** Required. Customer id or "my_customer" to use the customer associated to the account making the request. */
|
|
843
|
+
customer: string;
|
|
844
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
845
|
+
fields?: string;
|
|
846
|
+
/**
|
|
847
|
+
* Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Supported filter fields: * app_name * app_type *
|
|
848
|
+
* install_type * number_of_permissions * total_install_count * latest_profile_active_date * permission_name
|
|
849
|
+
*/
|
|
850
|
+
filter?: string;
|
|
851
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
852
|
+
key?: string;
|
|
853
|
+
/** OAuth 2.0 token for the current user. */
|
|
854
|
+
oauth_token?: string;
|
|
855
|
+
/** Field used to order results. Supported order by fields: * app_name * app_type * install_type * number_of_permissions * total_install_count */
|
|
856
|
+
orderBy?: string;
|
|
857
|
+
/** The ID of the organizational unit. */
|
|
858
|
+
orgUnitId?: string;
|
|
859
|
+
/** Maximum number of results to return. Maximum and default are 100. */
|
|
860
|
+
pageSize?: number;
|
|
861
|
+
/** Token to specify the page of the request to be returned. */
|
|
862
|
+
pageToken?: string;
|
|
863
|
+
/** Returns response with indentations and line breaks. */
|
|
864
|
+
prettyPrint?: boolean;
|
|
865
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
866
|
+
quotaUser?: string;
|
|
867
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
868
|
+
upload_protocol?: string;
|
|
869
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
870
|
+
uploadType?: string;
|
|
871
|
+
}): Request<GoogleChromeManagementV1CountInstalledAppsResponse>;
|
|
872
|
+
/** Generate report of devices that have a specified app installed. */
|
|
873
|
+
findInstalledAppDevices(request?: {
|
|
874
|
+
/** V1 error format. */
|
|
875
|
+
"$.xgafv"?: string;
|
|
876
|
+
/** OAuth access token. */
|
|
877
|
+
access_token?: string;
|
|
878
|
+
/** Data format for response. */
|
|
879
|
+
alt?: string;
|
|
880
|
+
/**
|
|
881
|
+
* Unique identifier of the app. For Chrome apps and extensions, the 32-character id (e.g. ehoadneljpdggcbbknedodolkkjodefl). For Android apps, the package name (e.g.
|
|
882
|
+
* com.evernote).
|
|
883
|
+
*/
|
|
884
|
+
appId?: string;
|
|
885
|
+
/** Type of the app. */
|
|
886
|
+
appType?: string;
|
|
887
|
+
/** JSONP */
|
|
888
|
+
callback?: string;
|
|
889
|
+
/** Required. Customer id or "my_customer" to use the customer associated to the account making the request. */
|
|
890
|
+
customer: string;
|
|
891
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
892
|
+
fields?: string;
|
|
893
|
+
/** Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Supported filter fields: * last_active_date */
|
|
894
|
+
filter?: string;
|
|
895
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
896
|
+
key?: string;
|
|
897
|
+
/** OAuth 2.0 token for the current user. */
|
|
898
|
+
oauth_token?: string;
|
|
899
|
+
/** Field used to order results. Supported order by fields: * machine * device_id */
|
|
900
|
+
orderBy?: string;
|
|
901
|
+
/** The ID of the organizational unit. */
|
|
902
|
+
orgUnitId?: string;
|
|
903
|
+
/** Maximum number of results to return. Maximum and default are 100. */
|
|
904
|
+
pageSize?: number;
|
|
905
|
+
/** Token to specify the page of the request to be returned. */
|
|
906
|
+
pageToken?: string;
|
|
907
|
+
/** Returns response with indentations and line breaks. */
|
|
908
|
+
prettyPrint?: boolean;
|
|
909
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
910
|
+
quotaUser?: string;
|
|
911
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
912
|
+
upload_protocol?: string;
|
|
913
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
914
|
+
uploadType?: string;
|
|
915
|
+
}): Request<GoogleChromeManagementV1FindInstalledAppDevicesResponse>;
|
|
916
|
+
}
|
|
917
|
+
interface DevicesResource {
|
|
918
|
+
/** Get telemetry device. */
|
|
919
|
+
get(request?: {
|
|
920
|
+
/** V1 error format. */
|
|
921
|
+
"$.xgafv"?: string;
|
|
922
|
+
/** OAuth access token. */
|
|
923
|
+
access_token?: string;
|
|
924
|
+
/** Data format for response. */
|
|
925
|
+
alt?: string;
|
|
926
|
+
/** JSONP */
|
|
927
|
+
callback?: string;
|
|
928
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
929
|
+
fields?: string;
|
|
930
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
931
|
+
key?: string;
|
|
932
|
+
/** Required. Name of the `TelemetryDevice` to return. */
|
|
933
|
+
name: string;
|
|
934
|
+
/** OAuth 2.0 token for the current user. */
|
|
935
|
+
oauth_token?: string;
|
|
936
|
+
/** Returns response with indentations and line breaks. */
|
|
937
|
+
prettyPrint?: boolean;
|
|
938
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
939
|
+
quotaUser?: string;
|
|
940
|
+
/** Required. Read mask to specify which fields to return. */
|
|
941
|
+
readMask?: string;
|
|
942
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
943
|
+
upload_protocol?: string;
|
|
944
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
945
|
+
uploadType?: string;
|
|
946
|
+
}): Request<GoogleChromeManagementV1TelemetryDevice>;
|
|
947
|
+
/** List all telemetry devices. */
|
|
948
|
+
list(request?: {
|
|
949
|
+
/** V1 error format. */
|
|
950
|
+
"$.xgafv"?: string;
|
|
951
|
+
/** OAuth access token. */
|
|
952
|
+
access_token?: string;
|
|
953
|
+
/** Data format for response. */
|
|
954
|
+
alt?: string;
|
|
955
|
+
/** JSONP */
|
|
956
|
+
callback?: string;
|
|
957
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
958
|
+
fields?: string;
|
|
959
|
+
/** Optional. Only include resources that match the filter. Supported filter fields: - org_unit_id - serial_number - device_id */
|
|
960
|
+
filter?: string;
|
|
961
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
962
|
+
key?: string;
|
|
963
|
+
/** OAuth 2.0 token for the current user. */
|
|
964
|
+
oauth_token?: string;
|
|
965
|
+
/** Maximum number of results to return. Default value is 100. Maximum value is 1000. */
|
|
966
|
+
pageSize?: number;
|
|
967
|
+
/** Token to specify next page in the list. */
|
|
968
|
+
pageToken?: string;
|
|
969
|
+
/** Required. Customer id or "my_customer" to use the customer associated to the account making the request. */
|
|
970
|
+
parent: string;
|
|
971
|
+
/** Returns response with indentations and line breaks. */
|
|
972
|
+
prettyPrint?: boolean;
|
|
973
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
974
|
+
quotaUser?: string;
|
|
975
|
+
/** Required. Read mask to specify which fields to return. */
|
|
976
|
+
readMask?: string;
|
|
977
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
978
|
+
upload_protocol?: string;
|
|
979
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
980
|
+
uploadType?: string;
|
|
981
|
+
}): Request<GoogleChromeManagementV1ListTelemetryDevicesResponse>;
|
|
982
|
+
}
|
|
983
|
+
interface TelemetryResource {
|
|
984
|
+
devices: DevicesResource;
|
|
985
|
+
}
|
|
986
|
+
interface CustomersResource {
|
|
987
|
+
apps: AppsResource;
|
|
988
|
+
reports: ReportsResource;
|
|
989
|
+
telemetry: TelemetryResource;
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
const customers: CustomersResource;
|
|
993
|
+
}
|
|
994
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@maxim_mazurok/gapi.client.chromemanagement-v1",
|
|
3
|
+
"version": "0.0.20220811",
|
|
4
|
+
"description": "TypeScript typings for Chrome Management API v1",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": {
|
|
7
|
+
"email": "maxim@mazurok.com",
|
|
8
|
+
"name": "Maxim Mazurok",
|
|
9
|
+
"url": "https://maxim.mazurok.com"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
|
|
14
|
+
},
|
|
15
|
+
"types": "index.d.ts",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@types/gapi.client": "*",
|
|
18
|
+
"@types/gapi.client.discovery": "*"
|
|
19
|
+
}
|
|
20
|
+
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# TypeScript typings for Chrome Management API v1
|
|
2
|
+
|
|
3
|
+
The Chrome Management API is a suite of services that allows Chrome administrators to view, manage and gain insights on their Chrome OS and Chrome Browser devices.
|
|
4
|
+
For detailed description please check [documentation](http://developers.google.com/chrome/management/).
|
|
5
|
+
|
|
6
|
+
## Installing
|
|
7
|
+
|
|
8
|
+
Install typings for Chrome Management API:
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
npm install @types/gapi.client.chromemanagement-v1 --save-dev
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
You need to initialize Google API client in your code:
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
gapi.load('client', () => {
|
|
20
|
+
// now we can use gapi.client
|
|
21
|
+
// ...
|
|
22
|
+
});
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Then load api client wrapper:
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
gapi.client.load('https://chromemanagement.googleapis.com/$discovery/rest?version=v1', () => {
|
|
29
|
+
// now we can use:
|
|
30
|
+
// gapi.client.chromemanagement
|
|
31
|
+
});
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
```typescript
|
|
35
|
+
// Deprecated, use discovery document URL, see https://github.com/google/google-api-javascript-client/blob/master/docs/reference.md#----gapiclientloadname----version----callback--
|
|
36
|
+
gapi.client.load('chromemanagement', 'v1', () => {
|
|
37
|
+
// now we can use:
|
|
38
|
+
// gapi.client.chromemanagement
|
|
39
|
+
});
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Don't forget to authenticate your client before sending any request to resources:
|
|
43
|
+
|
|
44
|
+
```typescript
|
|
45
|
+
// declare client_id registered in Google Developers Console
|
|
46
|
+
var client_id = '',
|
|
47
|
+
scope = [
|
|
48
|
+
// See detailed information about apps installed on Chrome browsers and devices managed by your organization
|
|
49
|
+
'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
|
|
50
|
+
|
|
51
|
+
// See reports about devices and Chrome browsers managed within your organization
|
|
52
|
+
'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
53
|
+
|
|
54
|
+
// See basic device and telemetry information collected from Chrome OS devices or users managed within your organization
|
|
55
|
+
'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
|
|
56
|
+
],
|
|
57
|
+
immediate = true;
|
|
58
|
+
// ...
|
|
59
|
+
|
|
60
|
+
gapi.auth.authorize(
|
|
61
|
+
{ client_id: client_id, scope: scope, immediate: immediate },
|
|
62
|
+
authResult => {
|
|
63
|
+
if (authResult && !authResult.error) {
|
|
64
|
+
/* handle successful authorization */
|
|
65
|
+
} else {
|
|
66
|
+
/* handle authorization error */
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
After that you can use Chrome Management API resources: <!-- TODO: make this work for multiple namespaces -->
|
|
72
|
+
|
|
73
|
+
```typescript
|
|
74
|
+
```
|
package/tests.ts
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/* This is stub file for gapi.client.chromemanagement-v1 definition tests */
|
|
2
|
+
// IMPORTANT
|
|
3
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
|
+
|
|
6
|
+
// Revision: 20220811
|
|
7
|
+
|
|
8
|
+
gapi.load('client', async () => {
|
|
9
|
+
/** now we can use gapi.client */
|
|
10
|
+
|
|
11
|
+
await gapi.client.load('https://chromemanagement.googleapis.com/$discovery/rest?version=v1');
|
|
12
|
+
/** now we can use gapi.client.chromemanagement */
|
|
13
|
+
|
|
14
|
+
/** don't forget to authenticate your client before sending any request to resources: */
|
|
15
|
+
/** declare client_id registered in Google Developers Console */
|
|
16
|
+
const client_id = '<<PUT YOUR CLIENT ID HERE>>';
|
|
17
|
+
const scope = [
|
|
18
|
+
/** See detailed information about apps installed on Chrome browsers and devices managed by your organization */
|
|
19
|
+
'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
|
|
20
|
+
/** See reports about devices and Chrome browsers managed within your organization */
|
|
21
|
+
'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
22
|
+
/** See basic device and telemetry information collected from Chrome OS devices or users managed within your organization */
|
|
23
|
+
'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
|
|
24
|
+
];
|
|
25
|
+
const immediate = false;
|
|
26
|
+
gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
|
|
27
|
+
if (authResult && !authResult.error) {
|
|
28
|
+
/** handle successful authorization */
|
|
29
|
+
run();
|
|
30
|
+
} else {
|
|
31
|
+
/** handle authorization error */
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
async function run() {
|
|
36
|
+
/** Generate summary of app installation requests. */
|
|
37
|
+
await gapi.client.chromemanagement.customers.apps.countChromeAppRequests({
|
|
38
|
+
customer: "Test string",
|
|
39
|
+
orderBy: "Test string",
|
|
40
|
+
orgUnitId: "Test string",
|
|
41
|
+
pageSize: 42,
|
|
42
|
+
pageToken: "Test string",
|
|
43
|
+
});
|
|
44
|
+
/** Get a specific app for a customer by its resource name. */
|
|
45
|
+
await gapi.client.chromemanagement.customers.apps.android.get({
|
|
46
|
+
name: "Test string",
|
|
47
|
+
});
|
|
48
|
+
/** Get a specific app for a customer by its resource name. */
|
|
49
|
+
await gapi.client.chromemanagement.customers.apps.chrome.get({
|
|
50
|
+
name: "Test string",
|
|
51
|
+
});
|
|
52
|
+
/** Get a specific app for a customer by its resource name. */
|
|
53
|
+
await gapi.client.chromemanagement.customers.apps.web.get({
|
|
54
|
+
name: "Test string",
|
|
55
|
+
});
|
|
56
|
+
/**
|
|
57
|
+
* Generate report of the number of devices expiring in each month of the selected time frame. Devices are grouped by auto update expiration date and model. Further information can be
|
|
58
|
+
* found [here](https://support.google.com/chrome/a/answer/10564947).
|
|
59
|
+
*/
|
|
60
|
+
await gapi.client.chromemanagement.customers.reports.countChromeDevicesReachingAutoExpirationDate({
|
|
61
|
+
customer: "Test string",
|
|
62
|
+
maxAueDate: "Test string",
|
|
63
|
+
minAueDate: "Test string",
|
|
64
|
+
orgUnitId: "Test string",
|
|
65
|
+
});
|
|
66
|
+
/**
|
|
67
|
+
* Counts of ChromeOS devices that have not synced policies or have lacked user activity in the past 28 days, are out of date, or are not complaint. Further information can be found here
|
|
68
|
+
* https://support.google.com/chrome/a/answer/10564947
|
|
69
|
+
*/
|
|
70
|
+
await gapi.client.chromemanagement.customers.reports.countChromeDevicesThatNeedAttention({
|
|
71
|
+
customer: "Test string",
|
|
72
|
+
orgUnitId: "Test string",
|
|
73
|
+
readMask: "Test string",
|
|
74
|
+
});
|
|
75
|
+
/** Generate report of installed Chrome versions. */
|
|
76
|
+
await gapi.client.chromemanagement.customers.reports.countChromeVersions({
|
|
77
|
+
customer: "Test string",
|
|
78
|
+
filter: "Test string",
|
|
79
|
+
orgUnitId: "Test string",
|
|
80
|
+
pageSize: 42,
|
|
81
|
+
pageToken: "Test string",
|
|
82
|
+
});
|
|
83
|
+
/** Generate report of app installations. */
|
|
84
|
+
await gapi.client.chromemanagement.customers.reports.countInstalledApps({
|
|
85
|
+
customer: "Test string",
|
|
86
|
+
filter: "Test string",
|
|
87
|
+
orderBy: "Test string",
|
|
88
|
+
orgUnitId: "Test string",
|
|
89
|
+
pageSize: 42,
|
|
90
|
+
pageToken: "Test string",
|
|
91
|
+
});
|
|
92
|
+
/** Generate report of devices that have a specified app installed. */
|
|
93
|
+
await gapi.client.chromemanagement.customers.reports.findInstalledAppDevices({
|
|
94
|
+
appId: "Test string",
|
|
95
|
+
appType: "Test string",
|
|
96
|
+
customer: "Test string",
|
|
97
|
+
filter: "Test string",
|
|
98
|
+
orderBy: "Test string",
|
|
99
|
+
orgUnitId: "Test string",
|
|
100
|
+
pageSize: 42,
|
|
101
|
+
pageToken: "Test string",
|
|
102
|
+
});
|
|
103
|
+
/** Get telemetry device. */
|
|
104
|
+
await gapi.client.chromemanagement.customers.telemetry.devices.get({
|
|
105
|
+
name: "Test string",
|
|
106
|
+
readMask: "Test string",
|
|
107
|
+
});
|
|
108
|
+
/** List all telemetry devices. */
|
|
109
|
+
await gapi.client.chromemanagement.customers.telemetry.devices.list({
|
|
110
|
+
filter: "Test string",
|
|
111
|
+
pageSize: 42,
|
|
112
|
+
pageToken: "Test string",
|
|
113
|
+
parent: "Test string",
|
|
114
|
+
readMask: "Test string",
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
});
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"module": "commonjs",
|
|
4
|
+
"lib": ["es6", "dom"],
|
|
5
|
+
"noImplicitAny": true,
|
|
6
|
+
"noImplicitThis": true,
|
|
7
|
+
"strictNullChecks": true,
|
|
8
|
+
"baseUrl": "../",
|
|
9
|
+
"typeRoots": [
|
|
10
|
+
"../"
|
|
11
|
+
],
|
|
12
|
+
"types": [],
|
|
13
|
+
"noEmit": true,
|
|
14
|
+
"forceConsistentCasingInFileNames": true,
|
|
15
|
+
"strictFunctionTypes": true
|
|
16
|
+
},
|
|
17
|
+
"files": ["index.d.ts", "tests.ts"]
|
|
18
|
+
}
|