@maxim_mazurok/gapi.client.androidmanagement-v1 0.0.20220801

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 ADDED
@@ -0,0 +1,2867 @@
1
+ /* Type definitions for non-npm package Android Management API v1 0.0 */
2
+ // Project: https://developers.google.com/android/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://androidmanagement.googleapis.com/$discovery/rest?version=v1
13
+ // Revision: 20220801
14
+
15
+ /// <reference types="gapi.client" />
16
+
17
+ declare namespace gapi.client {
18
+ /** Load Android Management API v1 */
19
+ function load(urlOrObject: "https://androidmanagement.googleapis.com/$discovery/rest?version=v1"): Promise<void>;
20
+ /** @deprecated Please load APIs with discovery documents. */
21
+ function load(name: "androidmanagement", version: "v1"): Promise<void>;
22
+ /** @deprecated Please load APIs with discovery documents. */
23
+ function load(name: "androidmanagement", version: "v1", callback: () => any): void;
24
+
25
+ namespace androidmanagement {
26
+ interface AdbShellCommandEvent {
27
+ /** Shell command that was issued over ADB via "adb shell command". Redacted to empty string on organization-owned managed profile devices. */
28
+ shellCmd?: string;
29
+ }
30
+ // tslint:disable-next-line:no-empty-interface
31
+ interface AdbShellInteractiveEvent {
32
+ }
33
+ interface AdvancedSecurityOverrides {
34
+ /**
35
+ * Controls Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https://www.commoncriteriaportal.org/) (CC). Enabling
36
+ * Common Criteria Mode increases certain security components on a device, including AES-GCM encryption of Bluetooth Long Term Keys, and Wi-Fi configuration stores.Warning: Common
37
+ * Criteria Mode enforces a strict security model typically only required for IT products used in national security systems and other highly sensitive organizations. Standard device
38
+ * use may be affected. Only enabled if required.
39
+ */
40
+ commonCriteriaMode?: string;
41
+ /** Controls access to developer settings: developer options and safe boot. Replaces safeBootDisabled (deprecated) and debuggingFeaturesAllowed (deprecated). */
42
+ developerSettings?: string;
43
+ /** Whether Google Play Protect verification (https://support.google.com/accounts/answer/2812853) is enforced. Replaces ensureVerifyAppsEnabled (deprecated). */
44
+ googlePlayProtectVerifyApps?: string;
45
+ /**
46
+ * Personal apps that can read work profile notifications using a NotificationListenerService
47
+ * (https://developer.android.com/reference/android/service/notification/NotificationListenerService). By default, no personal apps (aside from system apps) can read work
48
+ * notifications. Each value in the list must be a package name.
49
+ */
50
+ personalAppsThatCanReadWorkNotifications?: string[];
51
+ /** The policy for untrusted apps (apps from unknown sources) enforced on the device. Replaces install_unknown_sources_allowed (deprecated). */
52
+ untrustedAppsPolicy?: string;
53
+ }
54
+ interface AlwaysOnVpnPackage {
55
+ /** Disallows networking when the VPN is not connected. */
56
+ lockdownEnabled?: boolean;
57
+ /** The package name of the VPN app. */
58
+ packageName?: string;
59
+ }
60
+ interface ApiLevelCondition {
61
+ /** The minimum desired Android Framework API level. If the device doesn't meet the minimum requirement, this condition is satisfied. Must be greater than zero. */
62
+ minApiLevel?: number;
63
+ }
64
+ interface Application {
65
+ /**
66
+ * Whether this app is free, free with in-app purchases, or paid. If the pricing is unspecified, this means the app is not generally available anymore (even though it might still be
67
+ * available to people who own it).
68
+ */
69
+ appPricing?: string;
70
+ /** Application tracks visible to the enterprise. */
71
+ appTracks?: AppTrackInfo[];
72
+ /** Versions currently available for this app. */
73
+ appVersions?: AppVersion[];
74
+ /** The name of the author of the apps (for example, the app developer). */
75
+ author?: string;
76
+ /** The countries which this app is available in as per ISO 3166-1 alpha-2. */
77
+ availableCountries?: string[];
78
+ /** The app category (e.g. RACING, SOCIAL, etc.) */
79
+ category?: string;
80
+ /** The content rating for this app. */
81
+ contentRating?: string;
82
+ /** The localized promotional description, if available. */
83
+ description?: string;
84
+ /** How and to whom the package is made available. */
85
+ distributionChannel?: string;
86
+ /** Noteworthy features (if any) of this app. */
87
+ features?: string[];
88
+ /** Full app description, if available. */
89
+ fullDescription?: string;
90
+ /** A link to an image that can be used as an icon for the app. This image is suitable for use up to a pixel size of 512 x 512. */
91
+ iconUrl?: string;
92
+ /** The set of managed properties available to be pre-configured for the app. */
93
+ managedProperties?: ManagedProperty[];
94
+ /** The minimum Android SDK necessary to run the app. */
95
+ minAndroidSdkVersion?: number;
96
+ /** The name of the app in the form enterprises/{enterprise}/applications/{package_name}. */
97
+ name?: string;
98
+ /** The permissions required by the app. */
99
+ permissions?: ApplicationPermission[];
100
+ /** A link to the (consumer) Google Play details page for the app. */
101
+ playStoreUrl?: string;
102
+ /** A localised description of the recent changes made to the app. */
103
+ recentChanges?: string;
104
+ /** A list of screenshot links representing the app. */
105
+ screenshotUrls?: string[];
106
+ /** A link to a smaller image that can be used as an icon for the app. This image is suitable for use up to a pixel size of 128 x 128. */
107
+ smallIconUrl?: string;
108
+ /** The title of the app. Localized. */
109
+ title?: string;
110
+ /** Output only. The approximate time (within 7 days) the app was last published. */
111
+ updateTime?: string;
112
+ }
113
+ interface ApplicationEvent {
114
+ /** The creation time of the event. */
115
+ createTime?: string;
116
+ /** App event type. */
117
+ eventType?: string;
118
+ }
119
+ interface ApplicationPermission {
120
+ /** A longer description of the permission, providing more detail on what it affects. Localized. */
121
+ description?: string;
122
+ /** The name of the permission. Localized. */
123
+ name?: string;
124
+ /** An opaque string uniquely identifying the permission. Not localized. */
125
+ permissionId?: string;
126
+ }
127
+ interface ApplicationPolicy {
128
+ /**
129
+ * List of the app’s track IDs that a device belonging to the enterprise can access. If the list contains multiple track IDs, devices receive the latest version among all accessible
130
+ * tracks. If the list contains no track IDs, devices only have access to the app’s production track. More details about each track are available in AppTrackInfo.
131
+ */
132
+ accessibleTrackIds?: string[];
133
+ /**
134
+ * Specifies whether the app is allowed networking when the VPN is not connected and alwaysOnVpnPackage.lockdownEnabled is enabled. If set to VPN_LOCKDOWN_ENFORCED, the app is not
135
+ * allowed networking, and if set to VPN_LOCKDOWN_EXEMPTION, the app is allowed networking. Only supported on devices running Android 10 and above. If this is not supported by the
136
+ * device, the device will contain a NonComplianceDetail with non_compliance_reason set to API_LEVEL and a fieldPath. If this is not applicable to the app, the device will contain a
137
+ * NonComplianceDetail with non_compliance_reason set to UNSUPPORTED and a fieldPath. The fieldPath is set to applications[i].alwaysOnVpnLockdownExemption, where i is the index of the
138
+ * package in the applications policy.
139
+ */
140
+ alwaysOnVpnLockdownExemption?: string;
141
+ /** Controls the auto-update mode for the app. */
142
+ autoUpdateMode?: string;
143
+ /** Controls whether the app can communicate with itself across a device’s work and personal profiles, subject to user consent. */
144
+ connectedWorkAndPersonalApp?: string;
145
+ /**
146
+ * The default policy for all permissions requested by the app. If specified, this overrides the policy-level default_permission_policy which applies to all apps. It does not override
147
+ * the permission_grants which applies to all apps.
148
+ */
149
+ defaultPermissionPolicy?: string;
150
+ /** The scopes delegated to the app from Android Device Policy. */
151
+ delegatedScopes?: string[];
152
+ /** Whether the app is disabled. When disabled, the app data is still preserved. */
153
+ disabled?: boolean;
154
+ /** Configuration to enable this app as an extension app, with the capability of interacting with Android Device Policy offline.This field can be set for at most one app. */
155
+ extensionConfig?: ExtensionConfig;
156
+ /** The type of installation to perform. */
157
+ installType?: string;
158
+ /** Whether the app is allowed to lock itself in full-screen mode. DEPRECATED. Use InstallType KIOSK or kioskCustomLauncherEnabled to to configure a dedicated device. */
159
+ lockTaskAllowed?: boolean;
160
+ /**
161
+ * Managed configuration applied to the app. The format for the configuration is dictated by the ManagedProperty values supported by the app. Each field name in the managed
162
+ * configuration must match the key field of the ManagedProperty. The field value must be compatible with the type of the ManagedProperty: *type* *JSON value* BOOL true or false STRING
163
+ * string INTEGER number CHOICE string MULTISELECT array of strings HIDDEN string BUNDLE_ARRAY array of objects
164
+ */
165
+ managedConfiguration?: { [P in string]: any };
166
+ /** The managed configurations template for the app, saved from the managed configurations iframe. This field is ignored if managed_configuration is set. */
167
+ managedConfigurationTemplate?: ManagedConfigurationTemplate;
168
+ /**
169
+ * The minimum version of the app that runs on the device. If set, the device attempts to update the app to at least this version code. If the app is not up-to-date, the device will
170
+ * contain a NonComplianceDetail with non_compliance_reason set to APP_NOT_UPDATED. The app must already be published to Google Play with a version code greater than or equal to this
171
+ * value. At most 20 apps may specify a minimum version code per policy.
172
+ */
173
+ minimumVersionCode?: number;
174
+ /** The package name of the app. For example, com.google.android.youtube for the YouTube app. */
175
+ packageName?: string;
176
+ /** Explicit permission grants or denials for the app. These values override the default_permission_policy and permission_grants which apply to all apps. */
177
+ permissionGrants?: PermissionGrant[];
178
+ }
179
+ interface ApplicationReport {
180
+ /** The source of the package. */
181
+ applicationSource?: string;
182
+ /** The display name of the app. */
183
+ displayName?: string;
184
+ /** List of app events. The most recent 20 events are stored in the list. */
185
+ events?: ApplicationEvent[];
186
+ /** The package name of the app that installed this app. */
187
+ installerPackageName?: string;
188
+ /** List of keyed app states reported by the app. */
189
+ keyedAppStates?: KeyedAppState[];
190
+ /** Package name of the app. */
191
+ packageName?: string;
192
+ /** The SHA-256 hash of the app's APK file, which can be used to verify the app hasn't been modified. Each byte of the hash value is represented as a two-digit hexadecimal number. */
193
+ packageSha256Hash?: string;
194
+ /**
195
+ * The SHA-1 hash of each android.content.pm.Signature (https://developer.android.com/reference/android/content/pm/Signature.html) associated with the app package. Each byte of each
196
+ * hash value is represented as a two-digit hexadecimal number.
197
+ */
198
+ signingKeyCertFingerprints?: string[];
199
+ /** Application state. */
200
+ state?: string;
201
+ /** The app version code, which can be used to determine whether one version is more recent than another. */
202
+ versionCode?: number;
203
+ /** The app version as displayed to the user. */
204
+ versionName?: string;
205
+ }
206
+ interface ApplicationReportingSettings {
207
+ /** Whether removed apps are included in application reports. */
208
+ includeRemovedApps?: boolean;
209
+ }
210
+ interface AppProcessInfo {
211
+ /** SHA-256 hash of the base APK, in hexadecimal format. */
212
+ apkSha256Hash?: string;
213
+ /**
214
+ * Package names of all packages that are associated with the particular user ID. In most cases, this will be a single package name, the package that has been assigned that user ID. If
215
+ * multiple application share a UID then all packages sharing UID will be included.
216
+ */
217
+ packageNames?: string[];
218
+ /** Process ID. */
219
+ pid?: number;
220
+ /** Process name. */
221
+ processName?: string;
222
+ /** SELinux policy info. */
223
+ seinfo?: string;
224
+ /** Process start time. */
225
+ startTime?: string;
226
+ /** UID of the package. */
227
+ uid?: number;
228
+ }
229
+ interface AppProcessStartEvent {
230
+ /** Information about a process. */
231
+ processInfo?: AppProcessInfo;
232
+ }
233
+ interface AppTrackInfo {
234
+ /** The track name associated with the trackId, set in the Play Console. The name is modifiable from Play Console. */
235
+ trackAlias?: string;
236
+ /** The unmodifiable unique track identifier, taken from the releaseTrackId in the URL of the Play Console page that displays the app’s track information. */
237
+ trackId?: string;
238
+ }
239
+ interface AppVersion {
240
+ /** If the value is True, it indicates that this version is a production track. */
241
+ production?: boolean;
242
+ /** Track identifiers that the app version is published in. This does not include the production track (see production instead). */
243
+ trackIds?: string[];
244
+ /** Unique increasing identifier for the app version. */
245
+ versionCode?: number;
246
+ /** The string used in the Play store by the app developer to identify the version. The string is not necessarily unique or localized (for example, the string could be "1.4"). */
247
+ versionString?: string;
248
+ }
249
+ interface BatchUsageLogEvents {
250
+ /** The name of the device in the form ‘enterprises/{enterpriseId}/devices/{deviceId}’ */
251
+ device?: string;
252
+ /** The device timestamp when the batch of events were collected from the device. */
253
+ retrievalTime?: string;
254
+ /** The list of UsageLogEvent that were reported by the device, sorted chronologically by the event time. */
255
+ usageLogEvents?: UsageLogEvent[];
256
+ /** The resource name of the user that owns this device in the form ‘enterprises/{enterpriseId}/users/{userId}’. */
257
+ user?: string;
258
+ }
259
+ interface BlockAction {
260
+ /** Number of days the policy is non-compliant before the device or work profile is blocked. To block access immediately, set to 0. blockAfterDays must be less than wipeAfterDays. */
261
+ blockAfterDays?: number;
262
+ /** Specifies the scope of this BlockAction. Only applicable to devices that are company-owned. */
263
+ blockScope?: string;
264
+ }
265
+ interface CertAuthorityInstalledEvent {
266
+ /** Subject of the certificate. */
267
+ certificate?: string;
268
+ /** Whether the installation event succeeded. */
269
+ success?: boolean;
270
+ /** The user in which the certificate install event happened. Only available for devices running Android 11 and above. */
271
+ userId?: number;
272
+ }
273
+ interface CertAuthorityRemovedEvent {
274
+ /** Subject of the certificate. */
275
+ certificate?: string;
276
+ /** Whether the removal succeeded. */
277
+ success?: boolean;
278
+ /** The user in which the certificate removal event occurred. Only available for devices running Android 11 and above. */
279
+ userId?: number;
280
+ }
281
+ interface CertValidationFailureEvent {
282
+ /** The reason why certification validation failed. */
283
+ failureReason?: string;
284
+ }
285
+ interface ChoosePrivateKeyRule {
286
+ // tslint:disable:max-line-length
287
+ /**
288
+ * The package names to which this rule applies. The hash of the signing certificate for each app is verified against the hash provided by Play. If no package names are specified, then
289
+ * the alias is provided to all apps that call KeyChain.choosePrivateKeyAlias
290
+ * (https://developer.android.com/reference/android/security/KeyChain#choosePrivateKeyAlias%28android.app.Activity,%20android.security.KeyChainAliasCallback,%20java.lang.String[],%20java.security.Principal[],%20java.lang.String,%20int,%20java.lang.String%29)
291
+ * or any overloads (but not without calling KeyChain.choosePrivateKeyAlias, even on Android 11 and above). Any app with the same Android UID as a package specified here will have
292
+ * access when they call KeyChain.choosePrivateKeyAlias.
293
+ */
294
+ // tslint:enable:max-line-length
295
+ packageNames?: string[];
296
+ /** The alias of the private key to be used. */
297
+ privateKeyAlias?: string;
298
+ /** The URL pattern to match against the URL of the request. If not set or empty, it matches all URLs. This uses the regular expression syntax of java.util.regex.Pattern. */
299
+ urlPattern?: string;
300
+ }
301
+ interface ClearAppsDataParams {
302
+ /** The package names of the apps whose data will be cleared when the command is executed. */
303
+ packageNames?: string[];
304
+ }
305
+ interface ClearAppsDataStatus {
306
+ /** The per-app results, a mapping from package names to the respective clearing result. */
307
+ results?: { [P in string]: PerAppResult };
308
+ }
309
+ interface Command {
310
+ /**
311
+ * Parameters for the CLEAR_APP_DATA command to clear the data of specified apps from the device. See ClearAppsDataParams. If this is set, then it is suggested that type should not be
312
+ * set. In this case, the server automatically sets it to CLEAR_APP_DATA. It is also acceptable to explicitly set type to CLEAR_APP_DATA.
313
+ */
314
+ clearAppsDataParams?: ClearAppsDataParams;
315
+ /** Output only. Status of the CLEAR_APP_DATA command to clear the data of specified apps from the device. See ClearAppsDataStatus. */
316
+ clearAppsDataStatus?: ClearAppsDataStatus;
317
+ /** The timestamp at which the command was created. The timestamp is automatically generated by the server. */
318
+ createTime?: string;
319
+ /**
320
+ * The duration for which the command is valid. The command will expire if not executed by the device during this time. The default duration if unspecified is ten minutes. There is no
321
+ * maximum duration.
322
+ */
323
+ duration?: string;
324
+ /** If the command failed, an error code explaining the failure. This is not set when the command is cancelled by the caller. */
325
+ errorCode?: string;
326
+ /** For commands of type RESET_PASSWORD, optionally specifies the new password. */
327
+ newPassword?: string;
328
+ /** For commands of type RESET_PASSWORD, optionally specifies flags. */
329
+ resetPasswordFlags?: string[];
330
+ /** The type of the command. */
331
+ type?: string;
332
+ /**
333
+ * The resource name of the user that owns the device in the form enterprises/{enterpriseId}/users/{userId}. This is automatically generated by the server based on the device the
334
+ * command is sent to.
335
+ */
336
+ userName?: string;
337
+ }
338
+ interface CommonCriteriaModeInfo {
339
+ /** Whether Common Criteria Mode is enabled. */
340
+ commonCriteriaModeStatus?: string;
341
+ }
342
+ interface ComplianceRule {
343
+ /** A condition which is satisfied if the Android Framework API level on the device doesn't meet a minimum requirement. */
344
+ apiLevelCondition?: ApiLevelCondition;
345
+ /**
346
+ * If set to true, the rule includes a mitigating action to disable apps so that the device is effectively disabled, but app data is preserved. If the device is running an app in
347
+ * locked task mode, the app will be closed and a UI showing the reason for non-compliance will be displayed.
348
+ */
349
+ disableApps?: boolean;
350
+ /** A condition which is satisfied if there exists any matching NonComplianceDetail for the device. */
351
+ nonComplianceDetailCondition?: NonComplianceDetailCondition;
352
+ /** If set, the rule includes a mitigating action to disable apps specified in the list, but app data is preserved. */
353
+ packageNamesToDisable?: string[];
354
+ }
355
+ interface ConnectEvent {
356
+ /** The destination IP address of the connect call. */
357
+ destinationIpAddress?: string;
358
+ /** The destination port of the connect call. */
359
+ destinationPort?: number;
360
+ /** The package name of the UID that performed the connect call. */
361
+ packageName?: string;
362
+ }
363
+ interface ContactInfo {
364
+ /** Email address for a point of contact, which will be used to send important announcements related to managed Google Play. */
365
+ contactEmail?: string;
366
+ /** The email of the data protection officer. The email is validated but not verified. */
367
+ dataProtectionOfficerEmail?: string;
368
+ /** The name of the data protection officer. */
369
+ dataProtectionOfficerName?: string;
370
+ /** The phone number of the data protection officer The phone number is validated but not verified. */
371
+ dataProtectionOfficerPhone?: string;
372
+ /** The email of the EU representative. The email is validated but not verified. */
373
+ euRepresentativeEmail?: string;
374
+ /** The name of the EU representative. */
375
+ euRepresentativeName?: string;
376
+ /** The phone number of the EU representative. The phone number is validated but not verified. */
377
+ euRepresentativePhone?: string;
378
+ }
379
+ interface ContentProviderEndpoint {
380
+ /** This feature is not generally available. */
381
+ packageName?: string;
382
+ /** Required. This feature is not generally available. */
383
+ signingCertsSha256?: string[];
384
+ /** This feature is not generally available. */
385
+ uri?: string;
386
+ }
387
+ interface CrossProfilePolicies {
388
+ /** Whether text copied from one profile (personal or work) can be pasted in the other profile. */
389
+ crossProfileCopyPaste?: string;
390
+ /**
391
+ * Whether data from one profile (personal or work) can be shared with apps in the other profile. Specifically controls simple data sharing via intents. Management of other
392
+ * cross-profile communication channels, such as contact search, copy/paste, or connected work & personal apps, are configured separately.
393
+ */
394
+ crossProfileDataSharing?: string;
395
+ /** Whether contacts stored in the work profile can be shown in personal profile contact searches and incoming calls. */
396
+ showWorkContactsInPersonalProfile?: string;
397
+ }
398
+ interface CryptoSelfTestCompletedEvent {
399
+ /** Whether the test succeeded. */
400
+ success?: boolean;
401
+ }
402
+ interface Date {
403
+ /** 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. */
404
+ day?: number;
405
+ /** Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. */
406
+ month?: number;
407
+ /** Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. */
408
+ year?: number;
409
+ }
410
+ interface Device {
411
+ /** The API level of the Android platform version running on the device. */
412
+ apiLevel?: number;
413
+ /** Reports for apps installed on the device. This information is only available when application_reports_enabled is true in the device's policy. */
414
+ applicationReports?: ApplicationReport[];
415
+ /**
416
+ * The password requirements currently applied to the device. The applied requirements may be slightly different from those specified in passwordPolicies in some cases. fieldPath is
417
+ * set based on passwordPolicies.
418
+ */
419
+ appliedPasswordPolicies?: PasswordRequirements[];
420
+ /** The name of the policy currently applied to the device. */
421
+ appliedPolicyName?: string;
422
+ /** The version of the policy currently applied to the device. */
423
+ appliedPolicyVersion?: string;
424
+ /** The state currently applied to the device. */
425
+ appliedState?: string;
426
+ /**
427
+ * Information about Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https://www.commoncriteriaportal.org/)
428
+ * (CC).This information is only available if statusReportingSettings.commonCriteriaModeEnabled is true in the device's policy.
429
+ */
430
+ commonCriteriaModeInfo?: CommonCriteriaModeInfo;
431
+ /** Device settings information. This information is only available if deviceSettingsEnabled is true in the device's policy. */
432
+ deviceSettings?: DeviceSettings;
433
+ /** If the device state is DISABLED, an optional message that is displayed on the device indicating the reason the device is disabled. This field can be modified by a patch request. */
434
+ disabledReason?: UserFacingMessage;
435
+ /** Detailed information about displays on the device. This information is only available if displayInfoEnabled is true in the device's policy. */
436
+ displays?: Display[];
437
+ /** The time of device enrollment. */
438
+ enrollmentTime?: string;
439
+ /** If the device was enrolled with an enrollment token with additional data provided, this field contains that data. */
440
+ enrollmentTokenData?: string;
441
+ /** If the device was enrolled with an enrollment token, this field contains the name of the token. */
442
+ enrollmentTokenName?: string;
443
+ /** Detailed information about the device hardware. */
444
+ hardwareInfo?: HardwareInfo;
445
+ /** Hardware status samples in chronological order. This information is only available if hardwareStatusEnabled is true in the device's policy. */
446
+ hardwareStatusSamples?: HardwareStatus[];
447
+ /** Deprecated. */
448
+ lastPolicyComplianceReportTime?: string;
449
+ /** The last time the device fetched its policy. */
450
+ lastPolicySyncTime?: string;
451
+ /** The last time the device sent a status report. */
452
+ lastStatusReportTime?: string;
453
+ /** The type of management mode Android Device Policy takes on the device. This influences which policy settings are supported. */
454
+ managementMode?: string;
455
+ /** Events related to memory and storage measurements in chronological order. This information is only available if memoryInfoEnabled is true in the device's policy. */
456
+ memoryEvents?: MemoryEvent[];
457
+ /** Memory information: contains information about device memory and storage. */
458
+ memoryInfo?: MemoryInfo;
459
+ /** The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. */
460
+ name?: string;
461
+ /** Device network information. This information is only available if networkInfoEnabled is true in the device's policy. */
462
+ networkInfo?: NetworkInfo;
463
+ /** Details about policy settings that the device is not compliant with. */
464
+ nonComplianceDetails?: NonComplianceDetail[];
465
+ /** Ownership of the managed device. */
466
+ ownership?: string;
467
+ /** Whether the device is compliant with its policy. */
468
+ policyCompliant?: boolean;
469
+ /**
470
+ * The name of the policy applied to the device, in the form enterprises/{enterpriseId}/policies/{policyId}. If not specified, the policy_name for the device's user is applied. This
471
+ * field can be modified by a patch request. You can specify only the policyId when calling enterprises.devices.patch, as long as the policyId doesn’t contain any slashes. The rest of
472
+ * the policy name is inferred.
473
+ */
474
+ policyName?: string;
475
+ /** Power management events on the device in chronological order. This information is only available if powerManagementEventsEnabled is true in the device's policy. */
476
+ powerManagementEvents?: PowerManagementEvent[];
477
+ /**
478
+ * If the same physical device has been enrolled multiple times, this field contains its previous device names. The serial number is used as the unique identifier to determine if the
479
+ * same physical device has enrolled previously. The names are in chronological order.
480
+ */
481
+ previousDeviceNames?: string[];
482
+ /** Device's security posture value that reflects how secure the device is. */
483
+ securityPosture?: SecurityPosture;
484
+ /** Detailed information about the device software. This information is only available if softwareInfoEnabled is true in the device's policy. */
485
+ softwareInfo?: SoftwareInfo;
486
+ /**
487
+ * The state to be applied to the device. This field can be modified by a patch request. Note that when calling enterprises.devices.patch, ACTIVE and DISABLED are the only allowable
488
+ * values. To enter the device into a DELETED state, call enterprises.devices.delete.
489
+ */
490
+ state?: string;
491
+ /** Map of selected system properties name and value related to the device. This information is only available if systemPropertiesEnabled is true in the device's policy. */
492
+ systemProperties?: { [P in string]: string };
493
+ /** The user who owns the device. */
494
+ user?: User;
495
+ /** The resource name of the user that owns this device in the form enterprises/{enterpriseId}/users/{userId}. */
496
+ userName?: string;
497
+ }
498
+ interface DeviceSettings {
499
+ /** Whether ADB (https://developer.android.com/studio/command-line/adb.html) is enabled on the device. */
500
+ adbEnabled?: boolean;
501
+ /** Whether developer mode is enabled on the device. */
502
+ developmentSettingsEnabled?: boolean;
503
+ /** Encryption status from DevicePolicyManager. */
504
+ encryptionStatus?: string;
505
+ /** Whether the device is secured with PIN/password. */
506
+ isDeviceSecure?: boolean;
507
+ /** Whether the storage encryption is enabled. */
508
+ isEncrypted?: boolean;
509
+ /** Whether installing apps from unknown sources is enabled. */
510
+ unknownSourcesEnabled?: boolean;
511
+ /** Whether Google Play Protect verification (https://support.google.com/accounts/answer/2812853) is enforced on the device. */
512
+ verifyAppsEnabled?: boolean;
513
+ }
514
+ interface Display {
515
+ /** Display density expressed as dots-per-inch. */
516
+ density?: number;
517
+ /** Unique display id. */
518
+ displayId?: number;
519
+ /** Display height in pixels. */
520
+ height?: number;
521
+ /** Name of the display. */
522
+ name?: string;
523
+ /** Refresh rate of the display in frames per second. */
524
+ refreshRate?: number;
525
+ /** State of the display. */
526
+ state?: string;
527
+ /** Display width in pixels. */
528
+ width?: number;
529
+ }
530
+ interface DnsEvent {
531
+ /** The hostname that was looked up. */
532
+ hostname?: string;
533
+ /** The (possibly truncated) list of the IP addresses returned for DNS lookup (max 10 IPv4 or IPv6 addresses). */
534
+ ipAddresses?: string[];
535
+ /** The package name of the UID that performed the DNS lookup. */
536
+ packageName?: string;
537
+ /** The number of IP addresses returned from the DNS lookup event. May be higher than the amount of ip_addresses if there were too many addresses to log. */
538
+ totalIpAddressesReturned?: string;
539
+ }
540
+ // tslint:disable-next-line:no-empty-interface
541
+ interface Empty {
542
+ }
543
+ interface EnrollmentToken {
544
+ /**
545
+ * Optional, arbitrary data associated with the enrollment token. This could contain, for example, the ID of an org unit the device is assigned to after enrollment. After a device
546
+ * enrolls with the token, this data will be exposed in the enrollment_token_data field of the Device resource. The data must be 1024 characters or less; otherwise, the creation
547
+ * request will fail.
548
+ */
549
+ additionalData?: string;
550
+ /**
551
+ * Controls whether personal usage is allowed on a device provisioned with this enrollment token.For company-owned devices: Enabling personal usage allows the user to set up a work
552
+ * profile on the device. Disabling personal usage requires the user provision the device as a fully managed device.For personally-owned devices: Enabling personal usage allows the
553
+ * user to set up a work profile on the device. Disabling personal usage will prevent the device from provisioning. Personal usage cannot be disabled on personally-owned device.
554
+ */
555
+ allowPersonalUsage?: string;
556
+ /**
557
+ * The length of time the enrollment token is valid, ranging from 1 minute to Durations.MAX_VALUE
558
+ * (https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately 10,000 years. If not specified, the default
559
+ * duration is 1 hour. Please note that if requested duration causes the resulting expiration_timestamp to exceed Timestamps.MAX_VALUE
560
+ * (https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Timestamps.html#MAX_VALUE), then expiration_timestamp is coerced to
561
+ * Timestamps.MAX_VALUE.
562
+ */
563
+ duration?: string;
564
+ /** The expiration time of the token. This is a read-only field generated by the server. */
565
+ expirationTimestamp?: string;
566
+ /** The name of the enrollment token, which is generated by the server during creation, in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}. */
567
+ name?: string;
568
+ /** Whether the enrollment token is for one time use only. If the flag is set to true, only one device can use it for registration. */
569
+ oneTimeOnly?: boolean;
570
+ /**
571
+ * The name of the policy initially applied to the enrolled device, in the form enterprises/{enterpriseId}/policies/{policyId}. If not specified, the policy_name for the device’s user
572
+ * is applied. If user_name is also not specified, enterprises/{enterpriseId}/policies/default is applied by default. When updating this field, you can specify only the policyId as
573
+ * long as the policyId doesn’t contain any slashes. The rest of the policy name will be inferred.
574
+ */
575
+ policyName?: string;
576
+ /**
577
+ * A JSON string whose UTF-8 representation can be used to generate a QR code to enroll a device with this enrollment token. To enroll a device using NFC, the NFC record must contain a
578
+ * serialized java.util.Properties representation of the properties in the JSON.
579
+ */
580
+ qrCode?: string;
581
+ /**
582
+ * The user associated with this enrollment token. If it's specified when the enrollment token is created and the user does not exist, the user will be created. This field must not
583
+ * contain personally identifiable information. Only the account_identifier field needs to be set.
584
+ */
585
+ user?: User;
586
+ /** The token value that's passed to the device and authorizes the device to enroll. This is a read-only field generated by the server. */
587
+ value?: string;
588
+ }
589
+ interface Enterprise {
590
+ /** Deprecated and unused. */
591
+ appAutoApprovalEnabled?: boolean;
592
+ /** The enterprise contact info of an EMM-managed enterprise. */
593
+ contactInfo?: ContactInfo;
594
+ /** The types of Google Pub/Sub notifications enabled for the enterprise. */
595
+ enabledNotificationTypes?: string[];
596
+ /** The name of the enterprise displayed to users. */
597
+ enterpriseDisplayName?: string;
598
+ /**
599
+ * An image displayed as a logo during device provisioning. Supported types are: image/bmp, image/gif, image/x-ico, image/jpeg, image/png, image/webp, image/vnd.wap.wbmp,
600
+ * image/x-adobe-dng.
601
+ */
602
+ logo?: ExternalData;
603
+ /** The name of the enterprise which is generated by the server during creation, in the form enterprises/{enterpriseId}. */
604
+ name?: string;
605
+ /**
606
+ * A color in RGB format that indicates the predominant color to display in the device management app UI. The color components are stored as follows: (red << 16) | (green << 8) | blue,
607
+ * where the value of each component is between 0 and 255, inclusive.
608
+ */
609
+ primaryColor?: number;
610
+ /** The topic which Pub/Sub notifications are published to, in the form projects/{project}/topics/{topic}. This field is only required if Pub/Sub notifications are enabled. */
611
+ pubsubTopic?: string;
612
+ /** Sign-in details of the enterprise. */
613
+ signinDetails?: SigninDetail[];
614
+ /** Terms and conditions that must be accepted when provisioning a device for this enterprise. A page of terms is generated for each value in this list. */
615
+ termsAndConditions?: TermsAndConditions[];
616
+ }
617
+ interface ExtensionConfig {
618
+ /** Fully qualified class name of the receiver service class for Android Device Policy to notify the extension app of any local command status updates. */
619
+ notificationReceiver?: string;
620
+ /**
621
+ * Hex-encoded SHA-256 hash of the signing certificate of the extension app. Only hexadecimal string representations of 64 characters are valid.If not specified, the signature for the
622
+ * corresponding package name is obtained from the Play Store instead.If this list is empty, the signature of the extension app on the device must match the signature obtained from the
623
+ * Play Store for the app to be able to communicate with Android Device Policy.If this list is not empty, the signature of the extension app on the device must match one of the entries
624
+ * in this list for the app to be able to communicate with Android Device Policy.In production use cases, it is recommended to leave this empty.
625
+ */
626
+ signingKeyFingerprintsSha256?: string[];
627
+ }
628
+ interface ExternalData {
629
+ /** The base-64 encoded SHA-256 hash of the content hosted at url. If the content doesn't match this hash, Android Device Policy won't use the data. */
630
+ sha256Hash?: string;
631
+ /**
632
+ * The absolute URL to the data, which must use either the http or https scheme. Android Device Policy doesn't provide any credentials in the GET request, so the URL must be publicly
633
+ * accessible. Including a long, random component in the URL may be used to prevent attackers from discovering the URL.
634
+ */
635
+ url?: string;
636
+ }
637
+ interface FilePulledEvent {
638
+ /** The path of the file being pulled. */
639
+ filePath?: string;
640
+ }
641
+ interface FilePushedEvent {
642
+ /** The path of the file being pushed. */
643
+ filePath?: string;
644
+ }
645
+ interface FreezePeriod {
646
+ /**
647
+ * The end date (inclusive) of the freeze period. Must be no later than 90 days from the start date. If the end date is earlier than the start date, the freeze period is considered
648
+ * wrapping year-end. Note: year must not be set. For example, {"month": 1,"date": 30}.
649
+ */
650
+ endDate?: Date;
651
+ /** The start date (inclusive) of the freeze period. Note: year must not be set. For example, {"month": 1,"date": 30}. */
652
+ startDate?: Date;
653
+ }
654
+ interface HardwareInfo {
655
+ /** Battery shutdown temperature thresholds in Celsius for each battery on the device. */
656
+ batteryShutdownTemperatures?: number[];
657
+ /** Battery throttling temperature thresholds in Celsius for each battery on the device. */
658
+ batteryThrottlingTemperatures?: number[];
659
+ /** Brand of the device. For example, Google. */
660
+ brand?: string;
661
+ /** CPU shutdown temperature thresholds in Celsius for each CPU on the device. */
662
+ cpuShutdownTemperatures?: number[];
663
+ /** CPU throttling temperature thresholds in Celsius for each CPU on the device. */
664
+ cpuThrottlingTemperatures?: number[];
665
+ /** Baseband version. For example, MDM9625_104662.22.05.34p. */
666
+ deviceBasebandVersion?: string;
667
+ /**
668
+ * Output only. ID that uniquely identifies a personally-owned device in a particular organization. On the same physical device when enrolled with the same organization, this ID
669
+ * persists across setups and even factory resets. This ID is available on personally-owned devices with a work profile on devices running Android 12 and above.
670
+ */
671
+ enterpriseSpecificId?: string;
672
+ /** GPU shutdown temperature thresholds in Celsius for each GPU on the device. */
673
+ gpuShutdownTemperatures?: number[];
674
+ /** GPU throttling temperature thresholds in Celsius for each GPU on the device. */
675
+ gpuThrottlingTemperatures?: number[];
676
+ /** Name of the hardware. For example, Angler. */
677
+ hardware?: string;
678
+ /** Manufacturer. For example, Motorola. */
679
+ manufacturer?: string;
680
+ /** The model of the device. For example, Asus Nexus 7. */
681
+ model?: string;
682
+ /** The device serial number. */
683
+ serialNumber?: string;
684
+ /** Device skin shutdown temperature thresholds in Celsius. */
685
+ skinShutdownTemperatures?: number[];
686
+ /** Device skin throttling temperature thresholds in Celsius. */
687
+ skinThrottlingTemperatures?: number[];
688
+ }
689
+ interface HardwareStatus {
690
+ /** Current battery temperatures in Celsius for each battery on the device. */
691
+ batteryTemperatures?: number[];
692
+ /** Current CPU temperatures in Celsius for each CPU on the device. */
693
+ cpuTemperatures?: number[];
694
+ /** CPU usages in percentage for each core available on the device. Usage is 0 for each unplugged core. Empty array implies that CPU usage is not supported in the system. */
695
+ cpuUsages?: number[];
696
+ /** The time the measurements were taken. */
697
+ createTime?: string;
698
+ /** Fan speeds in RPM for each fan on the device. Empty array means that there are no fans or fan speed is not supported on the system. */
699
+ fanSpeeds?: number[];
700
+ /** Current GPU temperatures in Celsius for each GPU on the device. */
701
+ gpuTemperatures?: number[];
702
+ /** Current device skin temperatures in Celsius. */
703
+ skinTemperatures?: number[];
704
+ }
705
+ // tslint:disable-next-line:no-empty-interface
706
+ interface IssueCommandResponse {
707
+ }
708
+ interface KeyDestructionEvent {
709
+ /** UID of the application which owns the key. */
710
+ applicationUid?: number;
711
+ /** Alias of the key. */
712
+ keyAlias?: string;
713
+ /** Whether the operation was successful. */
714
+ success?: boolean;
715
+ }
716
+ interface KeyedAppState {
717
+ /** The creation time of the app state on the device. */
718
+ createTime?: string;
719
+ /**
720
+ * Optionally, a machine-readable value to be read by the EMM. For example, setting values that the admin can choose to query against in the EMM console (e.g. “notify me if the
721
+ * battery_warning data < 10”).
722
+ */
723
+ data?: string;
724
+ /**
725
+ * The key for the app state. Acts as a point of reference for what the app is providing state for. For example, when providing managed configuration feedback, this key could be the
726
+ * managed configuration key.
727
+ */
728
+ key?: string;
729
+ /** The time the app state was most recently updated. */
730
+ lastUpdateTime?: string;
731
+ /**
732
+ * Optionally, a free-form message string to explain the app state. If the state was triggered by a particular value (e.g. a managed configuration value), it should be included in the
733
+ * message.
734
+ */
735
+ message?: string;
736
+ /** The severity of the app state. */
737
+ severity?: string;
738
+ }
739
+ interface KeyGeneratedEvent {
740
+ /** UID of the application which generated the key. */
741
+ applicationUid?: number;
742
+ /** Alias of the key. */
743
+ keyAlias?: string;
744
+ /** Whether the operation was successful. */
745
+ success?: boolean;
746
+ }
747
+ interface KeyguardDismissAuthAttemptEvent {
748
+ /** Whether a strong form of authentication (password, PIN, or pattern) was used to unlock device. */
749
+ strongAuthMethodUsed?: boolean;
750
+ /** Whether the unlock attempt was successful. */
751
+ success?: boolean;
752
+ }
753
+ // tslint:disable-next-line:no-empty-interface
754
+ interface KeyguardDismissedEvent {
755
+ }
756
+ // tslint:disable-next-line:no-empty-interface
757
+ interface KeyguardSecuredEvent {
758
+ }
759
+ interface KeyImportEvent {
760
+ /** UID of the application which imported the key */
761
+ applicationUid?: number;
762
+ /** Alias of the key. */
763
+ keyAlias?: string;
764
+ /** Whether the operation was successful. */
765
+ success?: boolean;
766
+ }
767
+ interface KeyIntegrityViolationEvent {
768
+ /** UID of the application which owns the key */
769
+ applicationUid?: number;
770
+ /** Alias of the key. */
771
+ keyAlias?: string;
772
+ }
773
+ interface KioskCustomization {
774
+ /** Specifies whether the Settings app is allowed in kiosk mode. */
775
+ deviceSettings?: string;
776
+ /** Sets the behavior of a device in kiosk mode when a user presses and holds (long-presses) the Power button. */
777
+ powerButtonActions?: string;
778
+ /** Specifies whether system info and notifications are disabled in kiosk mode. */
779
+ statusBar?: string;
780
+ /**
781
+ * Specifies whether system error dialogs for crashed or unresponsive apps are blocked in kiosk mode. When blocked, the system will force-stop the app as if the user chooses the "close
782
+ * app" option on the UI.
783
+ */
784
+ systemErrorWarnings?: string;
785
+ /** Specifies which navigation features are enabled (e.g. Home, Overview buttons) in kiosk mode. */
786
+ systemNavigation?: string;
787
+ }
788
+ interface LaunchAppAction {
789
+ /** Package name of app to be launched */
790
+ packageName?: string;
791
+ }
792
+ interface ListDevicesResponse {
793
+ /** The list of devices. */
794
+ devices?: Device[];
795
+ /** If there are more results, a token to retrieve next page of results. */
796
+ nextPageToken?: string;
797
+ }
798
+ interface ListEnrollmentTokensResponse {
799
+ /** The list of enrollment tokens. */
800
+ enrollmentTokens?: EnrollmentToken[];
801
+ /** If there are more results, a token to retrieve next page of results. */
802
+ nextPageToken?: string;
803
+ }
804
+ interface ListEnterprisesResponse {
805
+ /** The list of enterprises. */
806
+ enterprises?: Enterprise[];
807
+ /** If there are more results, a token to retrieve next page of results. */
808
+ nextPageToken?: string;
809
+ }
810
+ interface ListOperationsResponse {
811
+ /** The standard List next-page token. */
812
+ nextPageToken?: string;
813
+ /** A list of operations that matches the specified filter in the request. */
814
+ operations?: Operation[];
815
+ }
816
+ interface ListPoliciesResponse {
817
+ /** If there are more results, a token to retrieve next page of results. */
818
+ nextPageToken?: string;
819
+ /** The list of policies. */
820
+ policies?: Policy[];
821
+ }
822
+ interface ListWebAppsResponse {
823
+ /** If there are more results, a token to retrieve next page of results. */
824
+ nextPageToken?: string;
825
+ /** The list of web apps. */
826
+ webApps?: WebApp[];
827
+ }
828
+ // tslint:disable-next-line:no-empty-interface
829
+ interface LogBufferSizeCriticalEvent {
830
+ }
831
+ // tslint:disable-next-line:no-empty-interface
832
+ interface LoggingStartedEvent {
833
+ }
834
+ // tslint:disable-next-line:no-empty-interface
835
+ interface LoggingStoppedEvent {
836
+ }
837
+ interface ManagedConfigurationTemplate {
838
+ /** Optional, a map containing configuration variables defined for the configuration. */
839
+ configurationVariables?: { [P in string]: string };
840
+ /** The ID of the managed configurations template. */
841
+ templateId?: string;
842
+ }
843
+ interface ManagedProperty {
844
+ /** The default value of the property. BUNDLE_ARRAY properties don't have a default value. */
845
+ defaultValue?: any;
846
+ /** A longer description of the property, providing more detail of what it affects. Localized. */
847
+ description?: string;
848
+ /** For CHOICE or MULTISELECT properties, the list of possible entries. */
849
+ entries?: ManagedPropertyEntry[];
850
+ /** The unique key that the app uses to identify the property, e.g. "com.google.android.gm.fieldname". */
851
+ key?: string;
852
+ /** For BUNDLE_ARRAY properties, the list of nested properties. A BUNDLE_ARRAY property is at most two levels deep. */
853
+ nestedProperties?: ManagedProperty[];
854
+ /** The name of the property. Localized. */
855
+ title?: string;
856
+ /** The type of the property. */
857
+ type?: string;
858
+ }
859
+ interface ManagedPropertyEntry {
860
+ /** The human-readable name of the value. Localized. */
861
+ name?: string;
862
+ /** The machine-readable value of the entry, which should be used in the configuration. Not localized. */
863
+ value?: string;
864
+ }
865
+ interface MediaMountEvent {
866
+ /** Mount point. */
867
+ mountPoint?: string;
868
+ /** Volume label. Redacted to empty string on organization-owned managed profile devices. */
869
+ volumeLabel?: string;
870
+ }
871
+ interface MediaUnmountEvent {
872
+ /** Mount point. */
873
+ mountPoint?: string;
874
+ /** Volume label. Redacted to empty string on organization-owned managed profile devices. */
875
+ volumeLabel?: string;
876
+ }
877
+ interface MemoryEvent {
878
+ /** The number of free bytes in the medium, or for EXTERNAL_STORAGE_DETECTED, the total capacity in bytes of the storage medium. */
879
+ byteCount?: string;
880
+ /** The creation time of the event. */
881
+ createTime?: string;
882
+ /** Event type. */
883
+ eventType?: string;
884
+ }
885
+ interface MemoryInfo {
886
+ /** Total internal storage on device in bytes. */
887
+ totalInternalStorage?: string;
888
+ /** Total RAM on device in bytes. */
889
+ totalRam?: string;
890
+ }
891
+ interface NetworkInfo {
892
+ /** IMEI number of the GSM device. For example, A1000031212. */
893
+ imei?: string;
894
+ /** MEID number of the CDMA device. For example, A00000292788E1. */
895
+ meid?: string;
896
+ /** Alphabetic name of current registered operator. For example, Vodafone. */
897
+ networkOperatorName?: string;
898
+ /** Provides telephony information associated with each SIM card on the device. Only supported on fully managed devices starting from Android API level 23. */
899
+ telephonyInfos?: TelephonyInfo[];
900
+ /** Wi-Fi MAC address of the device. For example, 7c:11:11:11:11:11. */
901
+ wifiMacAddress?: string;
902
+ }
903
+ interface NonComplianceDetail {
904
+ /** If the policy setting could not be applied, the current value of the setting on the device. */
905
+ currentValue?: any;
906
+ /**
907
+ * For settings with nested fields, if a particular nested field is out of compliance, this specifies the full path to the offending field. The path is formatted in the same way the
908
+ * policy JSON field would be referenced in JavaScript, that is: 1) For object-typed fields, the field name is followed by a dot then by a subfield name. 2) For array-typed fields, the
909
+ * field name is followed by the array index enclosed in brackets. For example, to indicate a problem with the url field in the externalData field in the 3rd application, the path
910
+ * would be applications[2].externalData.url
911
+ */
912
+ fieldPath?: string;
913
+ /** If package_name is set and the non-compliance reason is APP_NOT_INSTALLED or APP_NOT_UPDATED, the detailed reason the app can't be installed or updated. */
914
+ installationFailureReason?: string;
915
+ /** The reason the device is not in compliance with the setting. */
916
+ nonComplianceReason?: string;
917
+ /** The package name indicating which app is out of compliance, if applicable. */
918
+ packageName?: string;
919
+ /** The name of the policy setting. This is the JSON field name of a top-level Policy field. */
920
+ settingName?: string;
921
+ /** Additional context for specific_non_compliance_reason. */
922
+ specificNonComplianceContext?: SpecificNonComplianceContext;
923
+ /** The policy-specific reason the device is not in compliance with the setting. */
924
+ specificNonComplianceReason?: string;
925
+ }
926
+ interface NonComplianceDetailCondition {
927
+ /** The reason the device is not in compliance with the setting. If not set, then this condition matches any reason. */
928
+ nonComplianceReason?: string;
929
+ /** The package name of the app that's out of compliance. If not set, then this condition matches any package name. */
930
+ packageName?: string;
931
+ /** The name of the policy setting. This is the JSON field name of a top-level Policy field. If not set, then this condition matches any setting name. */
932
+ settingName?: string;
933
+ }
934
+ interface OncCertificateProvider {
935
+ /** This feature is not generally available. */
936
+ certificateReferences?: string[];
937
+ /** This feature is not generally available. */
938
+ contentProviderEndpoint?: ContentProviderEndpoint;
939
+ }
940
+ interface OncWifiContext {
941
+ /** The GUID of non-compliant Wi-Fi configuration. */
942
+ wifiGuid?: string;
943
+ }
944
+ interface Operation {
945
+ /** If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available. */
946
+ done?: boolean;
947
+ /** The error result of the operation in case of failure or cancellation. */
948
+ error?: Status;
949
+ /**
950
+ * Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such
951
+ * metadata. Any method that returns a long-running operation should document the metadata type, if any.
952
+ */
953
+ metadata?: { [P in string]: any };
954
+ /**
955
+ * The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending
956
+ * with operations/{unique_id}.
957
+ */
958
+ name?: string;
959
+ /**
960
+ * The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original
961
+ * method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name.
962
+ * For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
963
+ */
964
+ response?: { [P in string]: any };
965
+ }
966
+ // tslint:disable-next-line:no-empty-interface
967
+ interface OsShutdownEvent {
968
+ }
969
+ interface OsStartupEvent {
970
+ /** Verified Boot state. */
971
+ verifiedBootState?: string;
972
+ /** dm-verity mode. */
973
+ verityMode?: string;
974
+ }
975
+ interface PackageNameList {
976
+ /** A list of package names. */
977
+ packageNames?: string[];
978
+ }
979
+ interface PasswordPoliciesContext {
980
+ /** The scope of non-compliant password. */
981
+ passwordPolicyScope?: string;
982
+ }
983
+ interface PasswordRequirements {
984
+ /** Number of incorrect device-unlock passwords that can be entered before a device is wiped. A value of 0 means there is no restriction. */
985
+ maximumFailedPasswordsForWipe?: number;
986
+ /** Password expiration timeout. */
987
+ passwordExpirationTimeout?: string;
988
+ /**
989
+ * The length of the password history. After setting this field, the user won't be able to enter a new password that is the same as any password in the history. A value of 0 means
990
+ * there is no restriction.
991
+ */
992
+ passwordHistoryLength?: number;
993
+ /**
994
+ * The minimum allowed password length. A value of 0 means there is no restriction. Only enforced when password_quality is NUMERIC, NUMERIC_COMPLEX, ALPHABETIC, ALPHANUMERIC, or
995
+ * COMPLEX.
996
+ */
997
+ passwordMinimumLength?: number;
998
+ /** Minimum number of letters required in the password. Only enforced when password_quality is COMPLEX. */
999
+ passwordMinimumLetters?: number;
1000
+ /** Minimum number of lower case letters required in the password. Only enforced when password_quality is COMPLEX. */
1001
+ passwordMinimumLowerCase?: number;
1002
+ /** Minimum number of non-letter characters (numerical digits or symbols) required in the password. Only enforced when password_quality is COMPLEX. */
1003
+ passwordMinimumNonLetter?: number;
1004
+ /** Minimum number of numerical digits required in the password. Only enforced when password_quality is COMPLEX. */
1005
+ passwordMinimumNumeric?: number;
1006
+ /** Minimum number of symbols required in the password. Only enforced when password_quality is COMPLEX. */
1007
+ passwordMinimumSymbols?: number;
1008
+ /** Minimum number of upper case letters required in the password. Only enforced when password_quality is COMPLEX. */
1009
+ passwordMinimumUpperCase?: number;
1010
+ /** The required password quality. */
1011
+ passwordQuality?: string;
1012
+ /** The scope that the password requirement applies to. */
1013
+ passwordScope?: string;
1014
+ /**
1015
+ * The length of time after a device or work profile is unlocked using a strong form of authentication (password, PIN, pattern) that it can be unlocked using any other authentication
1016
+ * method (e.g. fingerprint, trust agents, face). After the specified time period elapses, only strong forms of authentication can be used to unlock the device or work profile.
1017
+ */
1018
+ requirePasswordUnlock?: string;
1019
+ /**
1020
+ * Controls whether a unified lock is allowed for the device and the work profile, on devices running Android 9 and above with a work profile. This can be set only if password_scope is
1021
+ * set to SCOPE_PROFILE, the policy will be rejected otherwise. If user has not set a separate work lock and this field is set to REQUIRE_SEPARATE_WORK_LOCK, a NonComplianceDetail is
1022
+ * reported with nonComplianceReason set to USER_ACTION.
1023
+ */
1024
+ unifiedLockSettings?: string;
1025
+ }
1026
+ interface PerAppResult {
1027
+ /** The result of an attempt to clear the data of a single app. */
1028
+ clearingResult?: string;
1029
+ }
1030
+ interface PermissionGrant {
1031
+ /** The Android permission or group, e.g. android.permission.READ_CALENDAR or android.permission_group.CALENDAR. */
1032
+ permission?: string;
1033
+ /** The policy for granting the permission. */
1034
+ policy?: string;
1035
+ }
1036
+ interface PersistentPreferredActivity {
1037
+ /**
1038
+ * The intent actions to match in the filter. If any actions are included in the filter, then an intent's action must be one of those values for it to match. If no actions are
1039
+ * included, the intent action is ignored.
1040
+ */
1041
+ actions?: string[];
1042
+ /**
1043
+ * The intent categories to match in the filter. An intent includes the categories that it requires, all of which must be included in the filter in order to match. In other words,
1044
+ * adding a category to the filter has no impact on matching unless that category is specified in the intent.
1045
+ */
1046
+ categories?: string[];
1047
+ /**
1048
+ * The activity that should be the default intent handler. This should be an Android component name, e.g. com.android.enterprise.app/.MainActivity. Alternatively, the value may be the
1049
+ * package name of an app, which causes Android Device Policy to choose an appropriate activity from the app to handle the intent.
1050
+ */
1051
+ receiverActivity?: string;
1052
+ }
1053
+ interface PersonalApplicationPolicy {
1054
+ /** The type of installation to perform. */
1055
+ installType?: string;
1056
+ /** The package name of the application. */
1057
+ packageName?: string;
1058
+ }
1059
+ interface PersonalUsagePolicies {
1060
+ /** Account types that can't be managed by the user. */
1061
+ accountTypesWithManagementDisabled?: string[];
1062
+ /** Whether camera is disabled. */
1063
+ cameraDisabled?: boolean;
1064
+ /** Controls how long the work profile can stay off. The duration must be at least 3 days. */
1065
+ maxDaysWithWorkOff?: number;
1066
+ /** Policy applied to applications in the personal profile. */
1067
+ personalApplications?: PersonalApplicationPolicy[];
1068
+ /** Used together with personalApplications to control how apps in the personal profile are allowed or blocked. */
1069
+ personalPlayStoreMode?: string;
1070
+ /** Whether screen capture is disabled. */
1071
+ screenCaptureDisabled?: boolean;
1072
+ }
1073
+ interface Policy {
1074
+ /** Account types that can't be managed by the user. */
1075
+ accountTypesWithManagementDisabled?: string[];
1076
+ /** Whether adding new users and profiles is disabled. */
1077
+ addUserDisabled?: boolean;
1078
+ /** Whether adjusting the master volume is disabled. Also mutes the device. */
1079
+ adjustVolumeDisabled?: boolean;
1080
+ /** Security policies set to secure values by default. To maintain the security posture of a device, we don't recommend overriding any of the default values. */
1081
+ advancedSecurityOverrides?: AdvancedSecurityOverrides;
1082
+ /** Configuration for an always-on VPN connection. Use with vpn_config_disabled to prevent modification of this setting. */
1083
+ alwaysOnVpnPackage?: AlwaysOnVpnPackage;
1084
+ /**
1085
+ * The app tracks for Android Device Policy the device can access. The device receives the latest version among all accessible tracks. If no tracks are specified, then the device only
1086
+ * uses the production track.
1087
+ */
1088
+ androidDevicePolicyTracks?: string[];
1089
+ /**
1090
+ * Deprecated. Use autoUpdateMode instead.When autoUpdateMode is set to AUTO_UPDATE_POSTPONED or AUTO_UPDATE_HIGH_PRIORITY, this field has no effect.The app auto update policy, which
1091
+ * controls when automatic app updates can be applied.
1092
+ */
1093
+ appAutoUpdatePolicy?: string;
1094
+ /** Policy applied to apps. */
1095
+ applications?: ApplicationPolicy[];
1096
+ /** Whether auto date, time, and time zone are enabled on a company-owned device. If this is set, then autoTimeRequired is ignored. */
1097
+ autoDateAndTimeZone?: string;
1098
+ /** Whether auto time is required, which prevents the user from manually setting the date and time. If autoDateAndTimeZone is set, this field is ignored. */
1099
+ autoTimeRequired?: boolean;
1100
+ /**
1101
+ * Whether applications other than the ones configured in applications are blocked from being installed. When set, applications that were installed under a previous policy but no
1102
+ * longer appear in the policy are automatically uninstalled.
1103
+ */
1104
+ blockApplicationsEnabled?: boolean;
1105
+ /** Whether configuring bluetooth is disabled. */
1106
+ bluetoothConfigDisabled?: boolean;
1107
+ /** Whether bluetooth contact sharing is disabled. */
1108
+ bluetoothContactSharingDisabled?: boolean;
1109
+ /** Whether bluetooth is disabled. Prefer this setting over bluetooth_config_disabled because bluetooth_config_disabled can be bypassed by the user. */
1110
+ bluetoothDisabled?: boolean;
1111
+ /** Controls the use of the camera and whether the user has access to the camera access toggle. */
1112
+ cameraAccess?: string;
1113
+ /**
1114
+ * If camera_access is set to any value other than CAMERA_ACCESS_UNSPECIFIED, this has no effect. Otherwise this field controls whether cameras are disabled: If true, all cameras are
1115
+ * disabled, otherwise they are available. For fully managed devices this field applies for all apps on the device. For work profiles, this field applies only to apps in the work
1116
+ * profile, and the camera access of apps outside the work profile is unaffected.
1117
+ */
1118
+ cameraDisabled?: boolean;
1119
+ /** Whether configuring cell broadcast is disabled. */
1120
+ cellBroadcastsConfigDisabled?: boolean;
1121
+ /** Rules for determining apps' access to private keys. See ChoosePrivateKeyRule for details. */
1122
+ choosePrivateKeyRules?: ChoosePrivateKeyRule[];
1123
+ /**
1124
+ * Rules declaring which mitigating actions to take when a device is not compliant with its policy. When the conditions for multiple rules are satisfied, all of the mitigating actions
1125
+ * for the rules are taken. There is a maximum limit of 100 rules. Use policy enforcement rules instead.
1126
+ */
1127
+ complianceRules?: ComplianceRule[];
1128
+ /** Whether creating windows besides app windows is disabled. */
1129
+ createWindowsDisabled?: boolean;
1130
+ /** Whether configuring user credentials is disabled. */
1131
+ credentialsConfigDisabled?: boolean;
1132
+ /** Cross-profile policies applied on the device. */
1133
+ crossProfilePolicies?: CrossProfilePolicies;
1134
+ /** Whether roaming data services are disabled. */
1135
+ dataRoamingDisabled?: boolean;
1136
+ /** Whether the user is allowed to enable debugging features. */
1137
+ debuggingFeaturesAllowed?: boolean;
1138
+ /** The default permission policy for runtime permission requests. */
1139
+ defaultPermissionPolicy?: string;
1140
+ /** The device owner information to be shown on the lock screen. */
1141
+ deviceOwnerLockScreenInfo?: UserFacingMessage;
1142
+ /** Whether encryption is enabled */
1143
+ encryptionPolicy?: string;
1144
+ /** Whether app verification is force-enabled. */
1145
+ ensureVerifyAppsEnabled?: boolean;
1146
+ /** Whether factory resetting from settings is disabled. */
1147
+ factoryResetDisabled?: boolean;
1148
+ /**
1149
+ * Email addresses of device administrators for factory reset protection. When the device is factory reset, it will require one of these admins to log in with the Google account email
1150
+ * and password to unlock the device. If no admins are specified, the device won't provide factory reset protection.
1151
+ */
1152
+ frpAdminEmails?: string[];
1153
+ /** Whether the user is allowed to have fun. Controls whether the Easter egg game in Settings is disabled. */
1154
+ funDisabled?: boolean;
1155
+ /** Whether user installation of apps is disabled. */
1156
+ installAppsDisabled?: boolean;
1157
+ /** This field has no effect. */
1158
+ installUnknownSourcesAllowed?: boolean;
1159
+ /** Whether the keyguard is disabled. */
1160
+ keyguardDisabled?: boolean;
1161
+ /** Disabled keyguard customizations, such as widgets. */
1162
+ keyguardDisabledFeatures?: string[];
1163
+ /** Settings controlling the behavior of a device in kiosk mode. To enable kiosk mode, set kioskCustomLauncherEnabled to true or specify an app in the policy with installType KIOSK. */
1164
+ kioskCustomization?: KioskCustomization;
1165
+ /**
1166
+ * Whether the kiosk custom launcher is enabled. This replaces the home screen with a launcher that locks down the device to the apps installed via the applications setting. Apps
1167
+ * appear on a single page in alphabetical order. Use kioskCustomization to further configure the kiosk device behavior.
1168
+ */
1169
+ kioskCustomLauncherEnabled?: boolean;
1170
+ /** The degree of location detection enabled. */
1171
+ locationMode?: string;
1172
+ /** A message displayed to the user in the device administators settings screen. */
1173
+ longSupportMessage?: UserFacingMessage;
1174
+ /** Maximum time in milliseconds for user activity until the device locks. A value of 0 means there is no restriction. */
1175
+ maximumTimeToLock?: string;
1176
+ /** Controls the use of the microphone and whether the user has access to the microphone access toggle. This applies only on fully managed devices. */
1177
+ microphoneAccess?: string;
1178
+ /** The minimum allowed Android API level. */
1179
+ minimumApiLevel?: number;
1180
+ /** Whether configuring mobile networks is disabled. */
1181
+ mobileNetworksConfigDisabled?: boolean;
1182
+ /** Whether adding or removing accounts is disabled. */
1183
+ modifyAccountsDisabled?: boolean;
1184
+ /** Whether the user mounting physical external media is disabled. */
1185
+ mountPhysicalMediaDisabled?: boolean;
1186
+ /** The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}. */
1187
+ name?: string;
1188
+ /**
1189
+ * Whether the network escape hatch is enabled. If a network connection can't be made at boot time, the escape hatch prompts the user to temporarily connect to a network in order to
1190
+ * refresh the device policy. After applying policy, the temporary network will be forgotten and the device will continue booting. This prevents being unable to connect to a network if
1191
+ * there is no suitable network in the last policy and the device boots into an app in lock task mode, or the user is otherwise unable to reach device settings.Note: Setting
1192
+ * wifiConfigDisabled to true will override this setting under specific circumstances. Please see wifiConfigDisabled for further details.
1193
+ */
1194
+ networkEscapeHatchEnabled?: boolean;
1195
+ /** Whether resetting network settings is disabled. */
1196
+ networkResetDisabled?: boolean;
1197
+ /** This feature is not generally available. */
1198
+ oncCertificateProviders?: OncCertificateProvider[];
1199
+ /** Network configuration for the device. See configure networks for more information. */
1200
+ openNetworkConfiguration?: { [P in string]: any };
1201
+ /** Whether using NFC to beam data from apps is disabled. */
1202
+ outgoingBeamDisabled?: boolean;
1203
+ /** Whether outgoing calls are disabled. */
1204
+ outgoingCallsDisabled?: boolean;
1205
+ /** Password requirement policies. Different policies can be set for work profile or fully managed devices by setting the password_scope field in the policy. */
1206
+ passwordPolicies?: PasswordRequirements[];
1207
+ /**
1208
+ * Password requirements. The field password_requirements.require_password_unlock must not be set. DEPRECATED - Use passwordPolicies.Note:Complexity-based values of PasswordQuality,
1209
+ * that is, COMPLEXITY_LOW, COMPLEXITY_MEDIUM, and COMPLEXITY_HIGH, cannot be used here. unified_lock_settings cannot be used here.
1210
+ */
1211
+ passwordRequirements?: PasswordRequirements;
1212
+ /** Explicit permission or group grants or denials for all apps. These values override the default_permission_policy. */
1213
+ permissionGrants?: PermissionGrant[];
1214
+ /**
1215
+ * Specifies permitted accessibility services. If the field is not set, any accessibility service can be used. If the field is set, only the accessibility services in this list and the
1216
+ * system's built-in accessibility service can be used. In particular, if the field is set to empty, only the system's built-in accessibility servicess can be used. This can be set on
1217
+ * fully managed devices and on work profiles. When applied to a work profile, this affects both the personal profile and the work profile.
1218
+ */
1219
+ permittedAccessibilityServices?: PackageNameList;
1220
+ /** If present, only the input methods provided by packages in this list are permitted. If this field is present, but the list is empty, then only system input methods are permitted. */
1221
+ permittedInputMethods?: PackageNameList;
1222
+ /** Default intent handler activities. */
1223
+ persistentPreferredActivities?: PersistentPreferredActivity[];
1224
+ /** Policies managing personal usage on a company-owned device. */
1225
+ personalUsagePolicies?: PersonalUsagePolicies;
1226
+ /** This mode controls which apps are available to the user in the Play Store and the behavior on the device when apps are removed from the policy. */
1227
+ playStoreMode?: string;
1228
+ /** Rules that define the behavior when a particular policy can not be applied on device */
1229
+ policyEnforcementRules?: PolicyEnforcementRule[];
1230
+ /**
1231
+ * Controls whether preferential network service is enabled on the work profile. For example, an organization may have an agreement with a carrier that all of the work data from its
1232
+ * employees' devices will be sent via a network service dedicated for enterprise use. An example of a supported preferential network service is the enterprise slice on 5G networks.
1233
+ * This has no effect on fully managed devices.
1234
+ */
1235
+ preferentialNetworkService?: string;
1236
+ /**
1237
+ * Allows showing UI on a device for a user to choose a private key alias if there are no matching rules in ChoosePrivateKeyRules. For devices below Android P, setting this may leave
1238
+ * enterprise keys vulnerable.
1239
+ */
1240
+ privateKeySelectionEnabled?: boolean;
1241
+ /**
1242
+ * The network-independent global HTTP proxy. Typically proxies should be configured per-network in open_network_configuration. However for unusual configurations like general internal
1243
+ * filtering a global HTTP proxy may be useful. If the proxy is not accessible, network access may break. The global proxy is only a recommendation and some apps may ignore it.
1244
+ */
1245
+ recommendedGlobalProxy?: ProxyInfo;
1246
+ /** Whether removing other users is disabled. */
1247
+ removeUserDisabled?: boolean;
1248
+ /** Whether rebooting the device into safe boot is disabled. */
1249
+ safeBootDisabled?: boolean;
1250
+ /** Whether screen capture is disabled. */
1251
+ screenCaptureDisabled?: boolean;
1252
+ /** Action to take during the setup process. At most one action may be specified. */
1253
+ setupActions?: SetupAction[];
1254
+ /** Whether changing the user icon is disabled. */
1255
+ setUserIconDisabled?: boolean;
1256
+ /** Whether changing the wallpaper is disabled. */
1257
+ setWallpaperDisabled?: boolean;
1258
+ /** Whether location sharing is disabled. */
1259
+ shareLocationDisabled?: boolean;
1260
+ /** A message displayed to the user in the settings screen wherever functionality has been disabled by the admin. If the message is longer than 200 characters it may be truncated. */
1261
+ shortSupportMessage?: UserFacingMessage;
1262
+ /** Flag to skip hints on the first use. Enterprise admin can enable the system recommendation for apps to skip their user tutorial and other introductory hints on first start-up. */
1263
+ skipFirstUseHintsEnabled?: boolean;
1264
+ /** Whether sending and receiving SMS messages is disabled. */
1265
+ smsDisabled?: boolean;
1266
+ /**
1267
+ * Whether the status bar is disabled. This disables notifications, quick settings, and other screen overlays that allow escape from full-screen mode. DEPRECATED. To disable the status
1268
+ * bar on a kiosk device, use InstallType KIOSK or kioskCustomLauncherEnabled.
1269
+ */
1270
+ statusBarDisabled?: boolean;
1271
+ /** Status reporting settings */
1272
+ statusReportingSettings?: StatusReportingSettings;
1273
+ /**
1274
+ * The battery plugged in modes for which the device stays on. When using this setting, it is recommended to clear maximum_time_to_lock so that the device doesn't lock itself while it
1275
+ * stays on.
1276
+ */
1277
+ stayOnPluggedModes?: string[];
1278
+ /** The system update policy, which controls how OS updates are applied. If the update type is WINDOWED, the update window will automatically apply to Play app updates as well. */
1279
+ systemUpdate?: SystemUpdate;
1280
+ /** Whether configuring tethering and portable hotspots is disabled. */
1281
+ tetheringConfigDisabled?: boolean;
1282
+ /** Whether user uninstallation of applications is disabled. */
1283
+ uninstallAppsDisabled?: boolean;
1284
+ /**
1285
+ * If microphone_access is set to any value other than MICROPHONE_ACCESS_UNSPECIFIED, this has no effect. Otherwise this field controls whether microphones are disabled: If true, all
1286
+ * microphones are disabled, otherwise they are available. This is available only on fully managed devices.
1287
+ */
1288
+ unmuteMicrophoneDisabled?: boolean;
1289
+ /** Configuration of device activity logging. */
1290
+ usageLog?: UsageLog;
1291
+ /** Whether transferring files over USB is disabled. */
1292
+ usbFileTransferDisabled?: boolean;
1293
+ /** Whether USB storage is enabled. Deprecated. */
1294
+ usbMassStorageEnabled?: boolean;
1295
+ /** The version of the policy. This is a read-only field. The version is incremented each time the policy is updated. */
1296
+ version?: string;
1297
+ /** Whether configuring VPN is disabled. */
1298
+ vpnConfigDisabled?: boolean;
1299
+ /**
1300
+ * Whether configuring Wi-Fi access points is disabled.Note: If a network connection can't be made at boot time and configuring Wi-Fi is disabled then network escape hatch will be
1301
+ * shown in order to refresh the device policy (see networkEscapeHatchEnabled).
1302
+ */
1303
+ wifiConfigDisabled?: boolean;
1304
+ /** DEPRECATED - Use wifi_config_disabled. */
1305
+ wifiConfigsLockdownEnabled?: boolean;
1306
+ }
1307
+ interface PolicyEnforcementRule {
1308
+ /**
1309
+ * An action to block access to apps and data on a fully managed device or in a work profile. This action also triggers a user-facing notification with information (where possible) on
1310
+ * how to correct the compliance issue. Note: wipeAction must also be specified.
1311
+ */
1312
+ blockAction?: BlockAction;
1313
+ /** The top-level policy to enforce. For example, applications or passwordPolicies. */
1314
+ settingName?: string;
1315
+ /** An action to reset a fully managed device or delete a work profile. Note: blockAction must also be specified. */
1316
+ wipeAction?: WipeAction;
1317
+ }
1318
+ interface PostureDetail {
1319
+ /** Corresponding admin-facing advice to mitigate this security risk and improve the security posture of the device. */
1320
+ advice?: UserFacingMessage[];
1321
+ /** A specific security risk that negatively affects the security posture of the device. */
1322
+ securityRisk?: string;
1323
+ }
1324
+ interface PowerManagementEvent {
1325
+ /** For BATTERY_LEVEL_COLLECTED events, the battery level as a percentage. */
1326
+ batteryLevel?: number;
1327
+ /** The creation time of the event. */
1328
+ createTime?: string;
1329
+ /** Event type. */
1330
+ eventType?: string;
1331
+ }
1332
+ interface ProxyInfo {
1333
+ /** For a direct proxy, the hosts for which the proxy is bypassed. The host names may contain wildcards such as *.example.com. */
1334
+ excludedHosts?: string[];
1335
+ /** The host of the direct proxy. */
1336
+ host?: string;
1337
+ /** The URI of the PAC script used to configure the proxy. */
1338
+ pacUri?: string;
1339
+ /** The port of the direct proxy. */
1340
+ port?: number;
1341
+ }
1342
+ interface RemoteLockEvent {
1343
+ /** Package name of the admin app requesting the change. */
1344
+ adminPackageName?: string;
1345
+ /** User ID of the admin app from the which the change was requested. */
1346
+ adminUserId?: number;
1347
+ /** User ID in which the change was requested in. */
1348
+ targetUserId?: number;
1349
+ }
1350
+ interface SecurityPosture {
1351
+ /** Device's security posture value. */
1352
+ devicePosture?: string;
1353
+ /** Additional details regarding the security posture of the device. */
1354
+ postureDetails?: PostureDetail[];
1355
+ }
1356
+ interface SetupAction {
1357
+ /** Description of this action. */
1358
+ description?: UserFacingMessage;
1359
+ /**
1360
+ * An action to launch an app. The app will be launched with an intent containing an extra with key com.google.android.apps.work.clouddpc.EXTRA_LAUNCHED_AS_SETUP_ACTION set to the
1361
+ * boolean value true to indicate that this is a setup action flow.
1362
+ */
1363
+ launchApp?: LaunchAppAction;
1364
+ /** Title of this action. */
1365
+ title?: UserFacingMessage;
1366
+ }
1367
+ interface SigninDetail {
1368
+ /**
1369
+ * Controls whether personal usage is allowed on a device provisioned with this enrollment token.For company-owned devices: Enabling personal usage allows the user to set up a work
1370
+ * profile on the device. Disabling personal usage requires the user provision the device as a fully managed device.For personally-owned devices: Enabling personal usage allows the
1371
+ * user to set up a work profile on the device. Disabling personal usage will prevent the device from provisioning. Personal usage cannot be disabled on personally-owned device.
1372
+ */
1373
+ allowPersonalUsage?: string;
1374
+ /**
1375
+ * A JSON string whose UTF-8 representation can be used to generate a QR code to enroll a device with this enrollment token. To enroll a device using NFC, the NFC record must contain a
1376
+ * serialized java.util.Properties representation of the properties in the JSON. This is a read-only field generated by the server.
1377
+ */
1378
+ qrCode?: string;
1379
+ /** An enterprise wide enrollment token used to trigger custom sign-in flow. This is a read-only field generated by the server. */
1380
+ signinEnrollmentToken?: string;
1381
+ /**
1382
+ * Sign-in URL for authentication when device is provisioned with a sign-in enrollment token. The sign-in endpoint should finish authentication flow with a URL in the form of
1383
+ * https://enterprise.google.com/android/enroll?et= for a successful login, or https://enterprise.google.com/android/enroll/invalid for a failed login.
1384
+ */
1385
+ signinUrl?: string;
1386
+ }
1387
+ interface SignupUrl {
1388
+ /** The name of the resource. Use this value in the signupUrl field when calling enterprises.create to complete the enterprise signup flow. */
1389
+ name?: string;
1390
+ /** A URL where an enterprise admin can register their enterprise. The page can't be rendered in an iframe. */
1391
+ url?: string;
1392
+ }
1393
+ interface SoftwareInfo {
1394
+ /** Android build ID string meant for displaying to the user. For example, shamu-userdebug 6.0.1 MOB30I 2756745 dev-keys. */
1395
+ androidBuildNumber?: string;
1396
+ /** Build time. */
1397
+ androidBuildTime?: string;
1398
+ /** The Android Device Policy app version code. */
1399
+ androidDevicePolicyVersionCode?: number;
1400
+ /** The Android Device Policy app version as displayed to the user. */
1401
+ androidDevicePolicyVersionName?: string;
1402
+ /** The user-visible Android version string. For example, 6.0.1. */
1403
+ androidVersion?: string;
1404
+ /** The system bootloader version number, e.g. 0.6.7. */
1405
+ bootloaderVersion?: string;
1406
+ /**
1407
+ * SHA-256 hash of android.content.pm.Signature (https://developer.android.com/reference/android/content/pm/Signature.html) associated with the system package, which can be used to
1408
+ * verify that the system build hasn't been modified.
1409
+ */
1410
+ deviceBuildSignature?: string;
1411
+ /** Kernel version, for example, 2.6.32.9-g103d848. */
1412
+ deviceKernelVersion?: string;
1413
+ /** An IETF BCP 47 language code for the primary locale on the device. */
1414
+ primaryLanguageCode?: string;
1415
+ /** Security patch level, e.g. 2016-05-01. */
1416
+ securityPatchLevel?: string;
1417
+ /** Information about a potential pending system update. */
1418
+ systemUpdateInfo?: SystemUpdateInfo;
1419
+ }
1420
+ interface SpecificNonComplianceContext {
1421
+ /** Additional context for non-compliance related to Wi-Fi configuration. See ONC_WIFI_INVALID_VALUE and ONC_WIFI_API_LEVEL */
1422
+ oncWifiContext?: OncWifiContext;
1423
+ /** Additional context for non-compliance related to password policies. See PASSWORD_POLICIES_PASSWORD_EXPIRED and PASSWORD_POLICIES_PASSWORD_NOT_SUFFICIENT. */
1424
+ passwordPoliciesContext?: PasswordPoliciesContext;
1425
+ }
1426
+ interface Status {
1427
+ /** The status code, which should be an enum value of google.rpc.Code. */
1428
+ code?: number;
1429
+ /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
1430
+ details?: Array<{ [P in string]: any }>;
1431
+ /**
1432
+ * 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
1433
+ * client.
1434
+ */
1435
+ message?: string;
1436
+ }
1437
+ interface StatusReportingSettings {
1438
+ /** Application reporting settings. Only applicable if application_reports_enabled is true. */
1439
+ applicationReportingSettings?: ApplicationReportingSettings;
1440
+ /** Whether app reports are enabled. */
1441
+ applicationReportsEnabled?: boolean;
1442
+ /** Whether Common Criteria Mode reporting is enabled. */
1443
+ commonCriteriaModeEnabled?: boolean;
1444
+ /** Whether device settings reporting is enabled. */
1445
+ deviceSettingsEnabled?: boolean;
1446
+ /** Whether displays reporting is enabled. Report data is not available for personally owned devices with work profiles. */
1447
+ displayInfoEnabled?: boolean;
1448
+ /** Whether hardware status reporting is enabled. Report data is not available for personally owned devices with work profiles. */
1449
+ hardwareStatusEnabled?: boolean;
1450
+ /** Whether memory event reporting is enabled. */
1451
+ memoryInfoEnabled?: boolean;
1452
+ /** Whether network info reporting is enabled. */
1453
+ networkInfoEnabled?: boolean;
1454
+ /** Whether power management event reporting is enabled. Report data is not available for personally owned devices with work profiles. */
1455
+ powerManagementEventsEnabled?: boolean;
1456
+ /** Whether software info reporting is enabled. */
1457
+ softwareInfoEnabled?: boolean;
1458
+ /** Whether system properties reporting is enabled. */
1459
+ systemPropertiesEnabled?: boolean;
1460
+ }
1461
+ interface SystemUpdate {
1462
+ /**
1463
+ * If the type is WINDOWED, the end of the maintenance window, measured as the number of minutes after midnight in device's local time. This value must be between 0 and 1439,
1464
+ * inclusive. If this value is less than start_minutes, then the maintenance window spans midnight. If the maintenance window specified is smaller than 30 minutes, the actual window is
1465
+ * extended to 30 minutes beyond the start time.
1466
+ */
1467
+ endMinutes?: number;
1468
+ /**
1469
+ * An annually repeating time period in which over-the-air (OTA) system updates are postponed to freeze the OS version running on a device. To prevent freezing the device indefinitely,
1470
+ * each freeze period must be separated by at least 60 days.
1471
+ */
1472
+ freezePeriods?: FreezePeriod[];
1473
+ /**
1474
+ * If the type is WINDOWED, the start of the maintenance window, measured as the number of minutes after midnight in the device's local time. This value must be between 0 and 1439,
1475
+ * inclusive.
1476
+ */
1477
+ startMinutes?: number;
1478
+ /** The type of system update to configure. */
1479
+ type?: string;
1480
+ }
1481
+ interface SystemUpdateInfo {
1482
+ /**
1483
+ * The time when the update was first available. A zero value indicates that this field is not set. This field is set only if an update is available (that is, updateStatus is neither
1484
+ * UPDATE_STATUS_UNKNOWN nor UP_TO_DATE).
1485
+ */
1486
+ updateReceivedTime?: string;
1487
+ /** The status of an update: whether an update exists and what type it is. */
1488
+ updateStatus?: string;
1489
+ }
1490
+ interface TelephonyInfo {
1491
+ /** The carrier name associated with this SIM card. */
1492
+ carrierName?: string;
1493
+ /** The phone number associated with this SIM card. */
1494
+ phoneNumber?: string;
1495
+ }
1496
+ interface TermsAndConditions {
1497
+ /** A well-formatted HTML string. It will be parsed on the client with android.text.Html#fromHtml. */
1498
+ content?: UserFacingMessage;
1499
+ /** A short header which appears above the HTML content. */
1500
+ header?: UserFacingMessage;
1501
+ }
1502
+ interface UsageLog {
1503
+ /** Specifies which log types are enabled. Note that users will receive on-device messaging when usage logging is enabled. */
1504
+ enabledLogTypes?: string[];
1505
+ /** Specifies which of the enabled log types can be uploaded over mobile data. By default logs are queued for upload when the device connects to WiFi. */
1506
+ uploadOnCellularAllowed?: string[];
1507
+ }
1508
+ interface UsageLogEvent {
1509
+ /** A shell command was issued over ADB via “adb shell command”. Part of SECURITY_LOGS. */
1510
+ adbShellCommandEvent?: AdbShellCommandEvent;
1511
+ /** An ADB interactive shell was opened via “adb shell”. Part of SECURITY_LOGS. */
1512
+ adbShellInteractiveEvent?: any;
1513
+ /** An app process was started. Part of SECURITY_LOGS. */
1514
+ appProcessStartEvent?: AppProcessStartEvent;
1515
+ /** A new root certificate was installed into the system's trusted credential storage. Part of SECURITY_LOGS. */
1516
+ certAuthorityInstalledEvent?: CertAuthorityInstalledEvent;
1517
+ /** A root certificate was removed from the system's trusted credential storage. Part of SECURITY_LOGS. */
1518
+ certAuthorityRemovedEvent?: CertAuthorityRemovedEvent;
1519
+ /**
1520
+ * An X.509v3 certificate failed to validate, currently this validation is performed on the Wi-FI access point and failure may be due to a mismatch upon server certificate validation.
1521
+ * However it may in the future include other validation events of an X.509v3 certificate. Part of SECURITY_LOGS.
1522
+ */
1523
+ certValidationFailureEvent?: CertValidationFailureEvent;
1524
+ /** A TCP connect event was initiated through the standard network stack. Part of NETWORK_ACTIVITY_LOGS. */
1525
+ connectEvent?: ConnectEvent;
1526
+ /**
1527
+ * Validates whether Android’s built-in cryptographic library (BoringSSL) is valid. Should always succeed on device boot, if it fails, the device should be considered untrusted. Part
1528
+ * of SECURITY_LOGS.
1529
+ */
1530
+ cryptoSelfTestCompletedEvent?: CryptoSelfTestCompletedEvent;
1531
+ /** A DNS lookup event was initiated through the standard network stack. Part of NETWORK_ACTIVITY_LOGS. */
1532
+ dnsEvent?: DnsEvent;
1533
+ /** Unique id of the event. */
1534
+ eventId?: string;
1535
+ /** Device timestamp when the event was logged. */
1536
+ eventTime?: string;
1537
+ /** The particular usage log event type that was reported on the device. Use this to determine which event field to access. */
1538
+ eventType?: string;
1539
+ /** A file was downloaded from the device. Part of SECURITY_LOGS. */
1540
+ filePulledEvent?: FilePulledEvent;
1541
+ /** A file was uploaded onto the device. Part of SECURITY_LOGS. */
1542
+ filePushedEvent?: FilePushedEvent;
1543
+ /** A cryptographic key including user installed, admin installed and system maintained private key is removed from the device either by the user or management. Part of SECURITY_LOGS. */
1544
+ keyDestructionEvent?: KeyDestructionEvent;
1545
+ /** A cryptographic key including user installed, admin installed and system maintained private key is installed on the device either by the user or management. Part of SECURITY_LOGS. */
1546
+ keyGeneratedEvent?: KeyGeneratedEvent;
1547
+ /** An attempt was made to unlock the device. Part of SECURITY_LOGS. */
1548
+ keyguardDismissAuthAttemptEvent?: KeyguardDismissAuthAttemptEvent;
1549
+ /** The keyguard was dismissed. Part of SECURITY_LOGS. */
1550
+ keyguardDismissedEvent?: any;
1551
+ /** The device was locked either by user or timeout. Part of SECURITY_LOGS. */
1552
+ keyguardSecuredEvent?: any;
1553
+ /** A cryptographic key including user installed, admin installed and system maintained private key is imported on the device either by the user or management. Part of SECURITY_LOGS. */
1554
+ keyImportEvent?: KeyImportEvent;
1555
+ /**
1556
+ * A cryptographic key including user installed, admin installed and system maintained private key is determined to be corrupted due to storage corruption, hardware failure or some OS
1557
+ * issue. Part of SECURITY_LOGS.
1558
+ */
1559
+ keyIntegrityViolationEvent?: KeyIntegrityViolationEvent;
1560
+ /** The audit log buffer has reached 90% of its capacity, therefore older events may be dropped. Part of SECURITY_LOGS. */
1561
+ logBufferSizeCriticalEvent?: any;
1562
+ /** usageLog policy has been enabled. Part of SECURITY_LOGS. */
1563
+ loggingStartedEvent?: any;
1564
+ /** usageLog policy has been disabled. Part of SECURITY_LOGS. */
1565
+ loggingStoppedEvent?: any;
1566
+ /** Removable media was mounted. Part of SECURITY_LOGS. */
1567
+ mediaMountEvent?: MediaMountEvent;
1568
+ /** Removable media was unmounted. Part of SECURITY_LOGS. */
1569
+ mediaUnmountEvent?: MediaUnmountEvent;
1570
+ /** Device was shutdown. Part of SECURITY_LOGS. */
1571
+ osShutdownEvent?: any;
1572
+ /** Device was started. Part of SECURITY_LOGS. */
1573
+ osStartupEvent?: OsStartupEvent;
1574
+ /** The device or profile has been remotely locked via the LOCK command. Part of SECURITY_LOGS. */
1575
+ remoteLockEvent?: RemoteLockEvent;
1576
+ /** The work profile or company-owned device failed to wipe when requested. This could be user initiated or admin initiated e.g. delete was received. Part of SECURITY_LOGS. */
1577
+ wipeFailureEvent?: any;
1578
+ }
1579
+ interface User {
1580
+ /**
1581
+ * A unique identifier you create for this user, such as user342 or asset#44418. This field must be set when the user is created and can't be updated. This field must not contain
1582
+ * personally identifiable information (PII). This identifier must be 1024 characters or less; otherwise, the update policy request will fail.
1583
+ */
1584
+ accountIdentifier?: string;
1585
+ }
1586
+ interface UserFacingMessage {
1587
+ /**
1588
+ * The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any
1589
+ * localized messages are provided.
1590
+ */
1591
+ defaultMessage?: string;
1592
+ /** A map containing pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. */
1593
+ localizedMessages?: { [P in string]: string };
1594
+ }
1595
+ interface WebApp {
1596
+ /** The display mode of the web app. */
1597
+ displayMode?: string;
1598
+ /** A list of icons for the web app. Must have at least one element. */
1599
+ icons?: WebAppIcon[];
1600
+ /** The name of the web app, which is generated by the server during creation in the form enterprises/{enterpriseId}/webApps/{packageName}. */
1601
+ name?: string;
1602
+ /** The start URL, i.e. the URL that should load when the user opens the application. */
1603
+ startUrl?: string;
1604
+ /** The title of the web app as displayed to the user (e.g., amongst a list of other applications, or as a label for an icon). */
1605
+ title?: string;
1606
+ /**
1607
+ * The current version of the app.Note that the version can automatically increase during the lifetime of the web app, while Google does internal housekeeping to keep the web app
1608
+ * up-to-date.
1609
+ */
1610
+ versionCode?: string;
1611
+ }
1612
+ interface WebAppIcon {
1613
+ /**
1614
+ * The actual bytes of the image in a base64url encoded string (c.f. RFC4648, section 5 "Base 64 Encoding with URL and Filename Safe Alphabet"). - The image type can be png or jpg. -
1615
+ * The image should ideally be square. - The image should ideally have a size of 512x512.
1616
+ */
1617
+ imageData?: string;
1618
+ }
1619
+ interface WebToken {
1620
+ /**
1621
+ * The features to enable. Use this if you want to control exactly which feature(s) will be activated; leave empty to allow all features.Restrictions / things to note: - If no features
1622
+ * are listed here, all features are enabled — this is the default behavior where you give access to all features to your admins. - This must not contain any FEATURE_UNSPECIFIED
1623
+ * values. - Repeated values are ignored
1624
+ */
1625
+ enabledFeatures?: string[];
1626
+ /** The name of the web token, which is generated by the server during creation in the form enterprises/{enterpriseId}/webTokens/{webTokenId}. */
1627
+ name?: string;
1628
+ /** The URL of the parent frame hosting the iframe with the embedded UI. To prevent XSS, the iframe may not be hosted at other URLs. The URL must use the https scheme. */
1629
+ parentFrameUrl?: string;
1630
+ /** Permissions available to an admin in the embedded UI. An admin must have all of these permissions in order to view the UI. This field is deprecated. */
1631
+ permissions?: string[];
1632
+ /** The token value which is used in the hosting page to generate the iframe with the embedded UI. This is a read-only field generated by the server. */
1633
+ value?: string;
1634
+ }
1635
+ interface WipeAction {
1636
+ /** Whether the factory-reset protection data is preserved on the device. This setting doesn’t apply to work profiles. */
1637
+ preserveFrp?: boolean;
1638
+ /** Number of days the policy is non-compliant before the device or work profile is wiped. wipeAfterDays must be greater than blockAfterDays. */
1639
+ wipeAfterDays?: number;
1640
+ }
1641
+ // tslint:disable-next-line:no-empty-interface
1642
+ interface WipeFailureEvent {
1643
+ }
1644
+ interface ApplicationsResource {
1645
+ /** Gets info about an application. */
1646
+ get(request?: {
1647
+ /** V1 error format. */
1648
+ "$.xgafv"?: string;
1649
+ /** OAuth access token. */
1650
+ access_token?: string;
1651
+ /** Data format for response. */
1652
+ alt?: string;
1653
+ /** JSONP */
1654
+ callback?: string;
1655
+ /** Selector specifying which fields to include in a partial response. */
1656
+ fields?: string;
1657
+ /** 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. */
1658
+ key?: string;
1659
+ /** The preferred language for localized application info, as a BCP47 tag (e.g. "en-US", "de"). If not specified the default language of the application will be used. */
1660
+ languageCode?: string;
1661
+ /** The name of the application in the form enterprises/{enterpriseId}/applications/{package_name}. */
1662
+ name: string;
1663
+ /** OAuth 2.0 token for the current user. */
1664
+ oauth_token?: string;
1665
+ /** Returns response with indentations and line breaks. */
1666
+ prettyPrint?: boolean;
1667
+ /** 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. */
1668
+ quotaUser?: string;
1669
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1670
+ upload_protocol?: string;
1671
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1672
+ uploadType?: string;
1673
+ }): Request<Application>;
1674
+ }
1675
+ interface OperationsResource {
1676
+ /**
1677
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support
1678
+ * this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation
1679
+ * completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a
1680
+ * google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
1681
+ */
1682
+ cancel(request?: {
1683
+ /** V1 error format. */
1684
+ "$.xgafv"?: string;
1685
+ /** OAuth access token. */
1686
+ access_token?: string;
1687
+ /** Data format for response. */
1688
+ alt?: string;
1689
+ /** JSONP */
1690
+ callback?: string;
1691
+ /** Selector specifying which fields to include in a partial response. */
1692
+ fields?: string;
1693
+ /** 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. */
1694
+ key?: string;
1695
+ /** The name of the operation resource to be cancelled. */
1696
+ name: string;
1697
+ /** OAuth 2.0 token for the current user. */
1698
+ oauth_token?: string;
1699
+ /** Returns response with indentations and line breaks. */
1700
+ prettyPrint?: boolean;
1701
+ /** 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. */
1702
+ quotaUser?: string;
1703
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1704
+ upload_protocol?: string;
1705
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1706
+ uploadType?: string;
1707
+ }): Request<{}>;
1708
+ /**
1709
+ * Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't
1710
+ * support this method, it returns google.rpc.Code.UNIMPLEMENTED.
1711
+ */
1712
+ delete(request?: {
1713
+ /** V1 error format. */
1714
+ "$.xgafv"?: string;
1715
+ /** OAuth access token. */
1716
+ access_token?: string;
1717
+ /** Data format for response. */
1718
+ alt?: string;
1719
+ /** JSONP */
1720
+ callback?: string;
1721
+ /** Selector specifying which fields to include in a partial response. */
1722
+ fields?: string;
1723
+ /** 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. */
1724
+ key?: string;
1725
+ /** The name of the operation resource to be deleted. */
1726
+ name: string;
1727
+ /** OAuth 2.0 token for the current user. */
1728
+ oauth_token?: string;
1729
+ /** Returns response with indentations and line breaks. */
1730
+ prettyPrint?: boolean;
1731
+ /** 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. */
1732
+ quotaUser?: string;
1733
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1734
+ upload_protocol?: string;
1735
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1736
+ uploadType?: string;
1737
+ }): Request<{}>;
1738
+ /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
1739
+ get(request?: {
1740
+ /** V1 error format. */
1741
+ "$.xgafv"?: string;
1742
+ /** OAuth access token. */
1743
+ access_token?: string;
1744
+ /** Data format for response. */
1745
+ alt?: string;
1746
+ /** JSONP */
1747
+ callback?: string;
1748
+ /** Selector specifying which fields to include in a partial response. */
1749
+ fields?: string;
1750
+ /** 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. */
1751
+ key?: string;
1752
+ /** The name of the operation resource. */
1753
+ name: string;
1754
+ /** OAuth 2.0 token for the current user. */
1755
+ oauth_token?: string;
1756
+ /** Returns response with indentations and line breaks. */
1757
+ prettyPrint?: boolean;
1758
+ /** 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. */
1759
+ quotaUser?: string;
1760
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1761
+ upload_protocol?: string;
1762
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1763
+ uploadType?: string;
1764
+ }): Request<Operation>;
1765
+ /**
1766
+ * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to
1767
+ * override the binding to use different resource name schemes, such as users/*‍/operations. To override the binding, API services can add a binding such as
1768
+ * "/v1/{name=users/*}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
1769
+ * ensure the name binding is the parent resource, without the operations collection id.
1770
+ */
1771
+ list(request?: {
1772
+ /** V1 error format. */
1773
+ "$.xgafv"?: string;
1774
+ /** OAuth access token. */
1775
+ access_token?: string;
1776
+ /** Data format for response. */
1777
+ alt?: string;
1778
+ /** JSONP */
1779
+ callback?: string;
1780
+ /** Selector specifying which fields to include in a partial response. */
1781
+ fields?: string;
1782
+ /** The standard list filter. */
1783
+ filter?: string;
1784
+ /** 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. */
1785
+ key?: string;
1786
+ /** The name of the operation's parent resource. */
1787
+ name: string;
1788
+ /** OAuth 2.0 token for the current user. */
1789
+ oauth_token?: string;
1790
+ /** The standard list page size. */
1791
+ pageSize?: number;
1792
+ /** The standard list page token. */
1793
+ pageToken?: string;
1794
+ /** Returns response with indentations and line breaks. */
1795
+ prettyPrint?: boolean;
1796
+ /** 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. */
1797
+ quotaUser?: string;
1798
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1799
+ upload_protocol?: string;
1800
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1801
+ uploadType?: string;
1802
+ }): Request<ListOperationsResponse>;
1803
+ }
1804
+ interface DevicesResource {
1805
+ /** Deletes a device. This operation wipes the device. */
1806
+ delete(request?: {
1807
+ /** V1 error format. */
1808
+ "$.xgafv"?: string;
1809
+ /** OAuth access token. */
1810
+ access_token?: string;
1811
+ /** Data format for response. */
1812
+ alt?: string;
1813
+ /** JSONP */
1814
+ callback?: string;
1815
+ /** Selector specifying which fields to include in a partial response. */
1816
+ fields?: string;
1817
+ /** 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. */
1818
+ key?: string;
1819
+ /** The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. */
1820
+ name: string;
1821
+ /** OAuth 2.0 token for the current user. */
1822
+ oauth_token?: string;
1823
+ /** Returns response with indentations and line breaks. */
1824
+ prettyPrint?: boolean;
1825
+ /** 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. */
1826
+ quotaUser?: string;
1827
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1828
+ upload_protocol?: string;
1829
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1830
+ uploadType?: string;
1831
+ /** Optional flags that control the device wiping behavior. */
1832
+ wipeDataFlags?: string | string[];
1833
+ /**
1834
+ * Optional. A short message displayed to the user before wiping the work profile on personal devices. This has no effect on company owned devices. The maximum message length is
1835
+ * 200 characters.
1836
+ */
1837
+ wipeReasonMessage?: string;
1838
+ }): Request<{}>;
1839
+ /** Gets a device. */
1840
+ get(request?: {
1841
+ /** V1 error format. */
1842
+ "$.xgafv"?: string;
1843
+ /** OAuth access token. */
1844
+ access_token?: string;
1845
+ /** Data format for response. */
1846
+ alt?: string;
1847
+ /** JSONP */
1848
+ callback?: string;
1849
+ /** Selector specifying which fields to include in a partial response. */
1850
+ fields?: string;
1851
+ /** 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. */
1852
+ key?: string;
1853
+ /** The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. */
1854
+ name: string;
1855
+ /** OAuth 2.0 token for the current user. */
1856
+ oauth_token?: string;
1857
+ /** Returns response with indentations and line breaks. */
1858
+ prettyPrint?: boolean;
1859
+ /** 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. */
1860
+ quotaUser?: string;
1861
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1862
+ upload_protocol?: string;
1863
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1864
+ uploadType?: string;
1865
+ }): Request<Device>;
1866
+ /** Issues a command to a device. The Operation resource returned contains a Command in its metadata field. Use the get operation method to get the status of the command. */
1867
+ issueCommand(request: {
1868
+ /** V1 error format. */
1869
+ "$.xgafv"?: string;
1870
+ /** OAuth access token. */
1871
+ access_token?: string;
1872
+ /** Data format for response. */
1873
+ alt?: string;
1874
+ /** JSONP */
1875
+ callback?: string;
1876
+ /** Selector specifying which fields to include in a partial response. */
1877
+ fields?: string;
1878
+ /** 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. */
1879
+ key?: string;
1880
+ /** The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. */
1881
+ name: string;
1882
+ /** OAuth 2.0 token for the current user. */
1883
+ oauth_token?: string;
1884
+ /** Returns response with indentations and line breaks. */
1885
+ prettyPrint?: boolean;
1886
+ /** 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. */
1887
+ quotaUser?: string;
1888
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1889
+ upload_protocol?: string;
1890
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1891
+ uploadType?: string;
1892
+ /** Request body */
1893
+ resource: Command;
1894
+ }): Request<Operation>;
1895
+ issueCommand(request: {
1896
+ /** V1 error format. */
1897
+ "$.xgafv"?: string;
1898
+ /** OAuth access token. */
1899
+ access_token?: string;
1900
+ /** Data format for response. */
1901
+ alt?: string;
1902
+ /** JSONP */
1903
+ callback?: string;
1904
+ /** Selector specifying which fields to include in a partial response. */
1905
+ fields?: string;
1906
+ /** 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. */
1907
+ key?: string;
1908
+ /** The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. */
1909
+ name: string;
1910
+ /** OAuth 2.0 token for the current user. */
1911
+ oauth_token?: string;
1912
+ /** Returns response with indentations and line breaks. */
1913
+ prettyPrint?: boolean;
1914
+ /** 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. */
1915
+ quotaUser?: string;
1916
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1917
+ upload_protocol?: string;
1918
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1919
+ uploadType?: string;
1920
+ },
1921
+ body: Command): Request<Operation>;
1922
+ /** Lists devices for a given enterprise. */
1923
+ list(request?: {
1924
+ /** V1 error format. */
1925
+ "$.xgafv"?: string;
1926
+ /** OAuth access token. */
1927
+ access_token?: string;
1928
+ /** Data format for response. */
1929
+ alt?: string;
1930
+ /** JSONP */
1931
+ callback?: string;
1932
+ /** Selector specifying which fields to include in a partial response. */
1933
+ fields?: string;
1934
+ /** 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. */
1935
+ key?: string;
1936
+ /** OAuth 2.0 token for the current user. */
1937
+ oauth_token?: string;
1938
+ /** The requested page size. The actual page size may be fixed to a min or max value. */
1939
+ pageSize?: number;
1940
+ /** A token identifying a page of results returned by the server. */
1941
+ pageToken?: string;
1942
+ /** The name of the enterprise in the form enterprises/{enterpriseId}. */
1943
+ parent: string;
1944
+ /** Returns response with indentations and line breaks. */
1945
+ prettyPrint?: boolean;
1946
+ /** 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. */
1947
+ quotaUser?: string;
1948
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1949
+ upload_protocol?: string;
1950
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1951
+ uploadType?: string;
1952
+ }): Request<ListDevicesResponse>;
1953
+ /** Updates a device. */
1954
+ patch(request: {
1955
+ /** V1 error format. */
1956
+ "$.xgafv"?: string;
1957
+ /** OAuth access token. */
1958
+ access_token?: string;
1959
+ /** Data format for response. */
1960
+ alt?: string;
1961
+ /** JSONP */
1962
+ callback?: string;
1963
+ /** Selector specifying which fields to include in a partial response. */
1964
+ fields?: string;
1965
+ /** 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. */
1966
+ key?: string;
1967
+ /** The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. */
1968
+ name: string;
1969
+ /** OAuth 2.0 token for the current user. */
1970
+ oauth_token?: string;
1971
+ /** Returns response with indentations and line breaks. */
1972
+ prettyPrint?: boolean;
1973
+ /** 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. */
1974
+ quotaUser?: string;
1975
+ /** The field mask indicating the fields to update. If not set, all modifiable fields will be modified. */
1976
+ updateMask?: string;
1977
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1978
+ upload_protocol?: string;
1979
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1980
+ uploadType?: string;
1981
+ /** Request body */
1982
+ resource: Device;
1983
+ }): Request<Device>;
1984
+ patch(request: {
1985
+ /** V1 error format. */
1986
+ "$.xgafv"?: string;
1987
+ /** OAuth access token. */
1988
+ access_token?: string;
1989
+ /** Data format for response. */
1990
+ alt?: string;
1991
+ /** JSONP */
1992
+ callback?: string;
1993
+ /** Selector specifying which fields to include in a partial response. */
1994
+ fields?: string;
1995
+ /** 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. */
1996
+ key?: string;
1997
+ /** The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. */
1998
+ name: string;
1999
+ /** OAuth 2.0 token for the current user. */
2000
+ oauth_token?: string;
2001
+ /** Returns response with indentations and line breaks. */
2002
+ prettyPrint?: boolean;
2003
+ /** 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. */
2004
+ quotaUser?: string;
2005
+ /** The field mask indicating the fields to update. If not set, all modifiable fields will be modified. */
2006
+ updateMask?: string;
2007
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2008
+ upload_protocol?: string;
2009
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2010
+ uploadType?: string;
2011
+ },
2012
+ body: Device): Request<Device>;
2013
+ operations: OperationsResource;
2014
+ }
2015
+ interface EnrollmentTokensResource {
2016
+ /**
2017
+ * Creates an enrollment token for a given enterprise. It's up to the caller's responsibility to manage the lifecycle of newly created tokens and deleting them when they're not
2018
+ * intended to be used anymore. Once an enrollment token has been created, it's not possible to retrieve the token's content anymore using AM API. It is recommended for EMMs to
2019
+ * securely store the token if it's intended to be reused.
2020
+ */
2021
+ create(request: {
2022
+ /** V1 error format. */
2023
+ "$.xgafv"?: string;
2024
+ /** OAuth access token. */
2025
+ access_token?: string;
2026
+ /** Data format for response. */
2027
+ alt?: string;
2028
+ /** JSONP */
2029
+ callback?: string;
2030
+ /** Selector specifying which fields to include in a partial response. */
2031
+ fields?: string;
2032
+ /** 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. */
2033
+ key?: string;
2034
+ /** OAuth 2.0 token for the current user. */
2035
+ oauth_token?: string;
2036
+ /** The name of the enterprise in the form enterprises/{enterpriseId}. */
2037
+ parent: string;
2038
+ /** Returns response with indentations and line breaks. */
2039
+ prettyPrint?: boolean;
2040
+ /** 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. */
2041
+ quotaUser?: string;
2042
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2043
+ upload_protocol?: string;
2044
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2045
+ uploadType?: string;
2046
+ /** Request body */
2047
+ resource: EnrollmentToken;
2048
+ }): Request<EnrollmentToken>;
2049
+ create(request: {
2050
+ /** V1 error format. */
2051
+ "$.xgafv"?: string;
2052
+ /** OAuth access token. */
2053
+ access_token?: string;
2054
+ /** Data format for response. */
2055
+ alt?: string;
2056
+ /** JSONP */
2057
+ callback?: string;
2058
+ /** Selector specifying which fields to include in a partial response. */
2059
+ fields?: string;
2060
+ /** 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. */
2061
+ key?: string;
2062
+ /** OAuth 2.0 token for the current user. */
2063
+ oauth_token?: string;
2064
+ /** The name of the enterprise in the form enterprises/{enterpriseId}. */
2065
+ parent: string;
2066
+ /** Returns response with indentations and line breaks. */
2067
+ prettyPrint?: boolean;
2068
+ /** 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. */
2069
+ quotaUser?: string;
2070
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2071
+ upload_protocol?: string;
2072
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2073
+ uploadType?: string;
2074
+ },
2075
+ body: EnrollmentToken): Request<EnrollmentToken>;
2076
+ /** Deletes an enrollment token. This operation invalidates the token, preventing its future use. */
2077
+ delete(request?: {
2078
+ /** V1 error format. */
2079
+ "$.xgafv"?: string;
2080
+ /** OAuth access token. */
2081
+ access_token?: string;
2082
+ /** Data format for response. */
2083
+ alt?: string;
2084
+ /** JSONP */
2085
+ callback?: string;
2086
+ /** Selector specifying which fields to include in a partial response. */
2087
+ fields?: string;
2088
+ /** 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. */
2089
+ key?: string;
2090
+ /** The name of the enrollment token in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}. */
2091
+ name: string;
2092
+ /** OAuth 2.0 token for the current user. */
2093
+ oauth_token?: string;
2094
+ /** Returns response with indentations and line breaks. */
2095
+ prettyPrint?: boolean;
2096
+ /** 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. */
2097
+ quotaUser?: string;
2098
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2099
+ upload_protocol?: string;
2100
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2101
+ uploadType?: string;
2102
+ }): Request<{}>;
2103
+ /**
2104
+ * Gets an active, unexpired enrollment token. Only a partial view of EnrollmentToken is returned: all the fields but name and expiration_timestamp are empty. This method is meant to
2105
+ * help manage active enrollment tokens lifecycle. For security reasons, it's recommended to delete active enrollment tokens as soon as they're not intended to be used anymore.
2106
+ */
2107
+ get(request?: {
2108
+ /** V1 error format. */
2109
+ "$.xgafv"?: string;
2110
+ /** OAuth access token. */
2111
+ access_token?: string;
2112
+ /** Data format for response. */
2113
+ alt?: string;
2114
+ /** JSONP */
2115
+ callback?: string;
2116
+ /** Selector specifying which fields to include in a partial response. */
2117
+ fields?: string;
2118
+ /** 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. */
2119
+ key?: string;
2120
+ /** Required. The name of the enrollment token in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}. */
2121
+ name: string;
2122
+ /** OAuth 2.0 token for the current user. */
2123
+ oauth_token?: string;
2124
+ /** Returns response with indentations and line breaks. */
2125
+ prettyPrint?: boolean;
2126
+ /** 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. */
2127
+ quotaUser?: string;
2128
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2129
+ upload_protocol?: string;
2130
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2131
+ uploadType?: string;
2132
+ }): Request<EnrollmentToken>;
2133
+ /**
2134
+ * Lists active, unexpired enrollment tokens for a given enterprise. The list items contain only a partial view of EnrollmentToken: all the fields but name and expiration_timestamp are
2135
+ * empty. This method is meant to help manage active enrollment tokens lifecycle. For security reasons, it's recommended to delete active enrollment tokens as soon as they're not
2136
+ * intended to be used anymore.
2137
+ */
2138
+ list(request?: {
2139
+ /** V1 error format. */
2140
+ "$.xgafv"?: string;
2141
+ /** OAuth access token. */
2142
+ access_token?: string;
2143
+ /** Data format for response. */
2144
+ alt?: string;
2145
+ /** JSONP */
2146
+ callback?: string;
2147
+ /** Selector specifying which fields to include in a partial response. */
2148
+ fields?: string;
2149
+ /** 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. */
2150
+ key?: string;
2151
+ /** OAuth 2.0 token for the current user. */
2152
+ oauth_token?: string;
2153
+ /**
2154
+ * The requested page size. The service may return fewer than this value. If unspecified, at most 10 items will be returned. The maximum value is 100; values above 100 will be
2155
+ * coerced to 100.
2156
+ */
2157
+ pageSize?: number;
2158
+ /** A token identifying a page of results returned by the server. */
2159
+ pageToken?: string;
2160
+ /** Required. The name of the enterprise in the form enterprises/{enterpriseId}. */
2161
+ parent: string;
2162
+ /** Returns response with indentations and line breaks. */
2163
+ prettyPrint?: boolean;
2164
+ /** 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. */
2165
+ quotaUser?: string;
2166
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2167
+ upload_protocol?: string;
2168
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2169
+ uploadType?: string;
2170
+ }): Request<ListEnrollmentTokensResponse>;
2171
+ }
2172
+ interface PoliciesResource {
2173
+ /** Deletes a policy. This operation is only permitted if no devices are currently referencing the policy. */
2174
+ delete(request?: {
2175
+ /** V1 error format. */
2176
+ "$.xgafv"?: string;
2177
+ /** OAuth access token. */
2178
+ access_token?: string;
2179
+ /** Data format for response. */
2180
+ alt?: string;
2181
+ /** JSONP */
2182
+ callback?: string;
2183
+ /** Selector specifying which fields to include in a partial response. */
2184
+ fields?: string;
2185
+ /** 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. */
2186
+ key?: string;
2187
+ /** The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}. */
2188
+ name: string;
2189
+ /** OAuth 2.0 token for the current user. */
2190
+ oauth_token?: string;
2191
+ /** Returns response with indentations and line breaks. */
2192
+ prettyPrint?: boolean;
2193
+ /** 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. */
2194
+ quotaUser?: string;
2195
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2196
+ upload_protocol?: string;
2197
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2198
+ uploadType?: string;
2199
+ }): Request<{}>;
2200
+ /** Gets a policy. */
2201
+ get(request?: {
2202
+ /** V1 error format. */
2203
+ "$.xgafv"?: string;
2204
+ /** OAuth access token. */
2205
+ access_token?: string;
2206
+ /** Data format for response. */
2207
+ alt?: string;
2208
+ /** JSONP */
2209
+ callback?: string;
2210
+ /** Selector specifying which fields to include in a partial response. */
2211
+ fields?: string;
2212
+ /** 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. */
2213
+ key?: string;
2214
+ /** The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}. */
2215
+ name: string;
2216
+ /** OAuth 2.0 token for the current user. */
2217
+ oauth_token?: string;
2218
+ /** Returns response with indentations and line breaks. */
2219
+ prettyPrint?: boolean;
2220
+ /** 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. */
2221
+ quotaUser?: string;
2222
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2223
+ upload_protocol?: string;
2224
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2225
+ uploadType?: string;
2226
+ }): Request<Policy>;
2227
+ /** Lists policies for a given enterprise. */
2228
+ list(request?: {
2229
+ /** V1 error format. */
2230
+ "$.xgafv"?: string;
2231
+ /** OAuth access token. */
2232
+ access_token?: string;
2233
+ /** Data format for response. */
2234
+ alt?: string;
2235
+ /** JSONP */
2236
+ callback?: string;
2237
+ /** Selector specifying which fields to include in a partial response. */
2238
+ fields?: string;
2239
+ /** 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. */
2240
+ key?: string;
2241
+ /** OAuth 2.0 token for the current user. */
2242
+ oauth_token?: string;
2243
+ /** The requested page size. The actual page size may be fixed to a min or max value. */
2244
+ pageSize?: number;
2245
+ /** A token identifying a page of results returned by the server. */
2246
+ pageToken?: string;
2247
+ /** The name of the enterprise in the form enterprises/{enterpriseId}. */
2248
+ parent: string;
2249
+ /** Returns response with indentations and line breaks. */
2250
+ prettyPrint?: boolean;
2251
+ /** 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. */
2252
+ quotaUser?: string;
2253
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2254
+ upload_protocol?: string;
2255
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2256
+ uploadType?: string;
2257
+ }): Request<ListPoliciesResponse>;
2258
+ /** Updates or creates a policy. */
2259
+ patch(request: {
2260
+ /** V1 error format. */
2261
+ "$.xgafv"?: string;
2262
+ /** OAuth access token. */
2263
+ access_token?: string;
2264
+ /** Data format for response. */
2265
+ alt?: string;
2266
+ /** JSONP */
2267
+ callback?: string;
2268
+ /** Selector specifying which fields to include in a partial response. */
2269
+ fields?: string;
2270
+ /** 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. */
2271
+ key?: string;
2272
+ /** The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}. */
2273
+ name: string;
2274
+ /** OAuth 2.0 token for the current user. */
2275
+ oauth_token?: string;
2276
+ /** Returns response with indentations and line breaks. */
2277
+ prettyPrint?: boolean;
2278
+ /** 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. */
2279
+ quotaUser?: string;
2280
+ /** The field mask indicating the fields to update. If not set, all modifiable fields will be modified. */
2281
+ updateMask?: string;
2282
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2283
+ upload_protocol?: string;
2284
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2285
+ uploadType?: string;
2286
+ /** Request body */
2287
+ resource: Policy;
2288
+ }): Request<Policy>;
2289
+ patch(request: {
2290
+ /** V1 error format. */
2291
+ "$.xgafv"?: string;
2292
+ /** OAuth access token. */
2293
+ access_token?: string;
2294
+ /** Data format for response. */
2295
+ alt?: string;
2296
+ /** JSONP */
2297
+ callback?: string;
2298
+ /** Selector specifying which fields to include in a partial response. */
2299
+ fields?: string;
2300
+ /** 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. */
2301
+ key?: string;
2302
+ /** The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}. */
2303
+ name: string;
2304
+ /** OAuth 2.0 token for the current user. */
2305
+ oauth_token?: string;
2306
+ /** Returns response with indentations and line breaks. */
2307
+ prettyPrint?: boolean;
2308
+ /** 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. */
2309
+ quotaUser?: string;
2310
+ /** The field mask indicating the fields to update. If not set, all modifiable fields will be modified. */
2311
+ updateMask?: string;
2312
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2313
+ upload_protocol?: string;
2314
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2315
+ uploadType?: string;
2316
+ },
2317
+ body: Policy): Request<Policy>;
2318
+ }
2319
+ interface WebAppsResource {
2320
+ /** Creates a web app. */
2321
+ create(request: {
2322
+ /** V1 error format. */
2323
+ "$.xgafv"?: string;
2324
+ /** OAuth access token. */
2325
+ access_token?: string;
2326
+ /** Data format for response. */
2327
+ alt?: string;
2328
+ /** JSONP */
2329
+ callback?: string;
2330
+ /** Selector specifying which fields to include in a partial response. */
2331
+ fields?: string;
2332
+ /** 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. */
2333
+ key?: string;
2334
+ /** OAuth 2.0 token for the current user. */
2335
+ oauth_token?: string;
2336
+ /** The name of the enterprise in the form enterprises/{enterpriseId}. */
2337
+ parent: string;
2338
+ /** Returns response with indentations and line breaks. */
2339
+ prettyPrint?: boolean;
2340
+ /** 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. */
2341
+ quotaUser?: string;
2342
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2343
+ upload_protocol?: string;
2344
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2345
+ uploadType?: string;
2346
+ /** Request body */
2347
+ resource: WebApp;
2348
+ }): Request<WebApp>;
2349
+ create(request: {
2350
+ /** V1 error format. */
2351
+ "$.xgafv"?: string;
2352
+ /** OAuth access token. */
2353
+ access_token?: string;
2354
+ /** Data format for response. */
2355
+ alt?: string;
2356
+ /** JSONP */
2357
+ callback?: string;
2358
+ /** Selector specifying which fields to include in a partial response. */
2359
+ fields?: string;
2360
+ /** 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. */
2361
+ key?: string;
2362
+ /** OAuth 2.0 token for the current user. */
2363
+ oauth_token?: string;
2364
+ /** The name of the enterprise in the form enterprises/{enterpriseId}. */
2365
+ parent: string;
2366
+ /** Returns response with indentations and line breaks. */
2367
+ prettyPrint?: boolean;
2368
+ /** 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. */
2369
+ quotaUser?: string;
2370
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2371
+ upload_protocol?: string;
2372
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2373
+ uploadType?: string;
2374
+ },
2375
+ body: WebApp): Request<WebApp>;
2376
+ /** Deletes a web app. */
2377
+ delete(request?: {
2378
+ /** V1 error format. */
2379
+ "$.xgafv"?: string;
2380
+ /** OAuth access token. */
2381
+ access_token?: string;
2382
+ /** Data format for response. */
2383
+ alt?: string;
2384
+ /** JSONP */
2385
+ callback?: string;
2386
+ /** Selector specifying which fields to include in a partial response. */
2387
+ fields?: string;
2388
+ /** 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. */
2389
+ key?: string;
2390
+ /** The name of the web app in the form enterprises/{enterpriseId}/webApps/{packageName}. */
2391
+ name: string;
2392
+ /** OAuth 2.0 token for the current user. */
2393
+ oauth_token?: string;
2394
+ /** Returns response with indentations and line breaks. */
2395
+ prettyPrint?: boolean;
2396
+ /** 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. */
2397
+ quotaUser?: string;
2398
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2399
+ upload_protocol?: string;
2400
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2401
+ uploadType?: string;
2402
+ }): Request<{}>;
2403
+ /** Gets a web app. */
2404
+ get(request?: {
2405
+ /** V1 error format. */
2406
+ "$.xgafv"?: string;
2407
+ /** OAuth access token. */
2408
+ access_token?: string;
2409
+ /** Data format for response. */
2410
+ alt?: string;
2411
+ /** JSONP */
2412
+ callback?: string;
2413
+ /** Selector specifying which fields to include in a partial response. */
2414
+ fields?: string;
2415
+ /** 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. */
2416
+ key?: string;
2417
+ /** The name of the web app in the form enterprises/{enterpriseId}/webApp/{packageName}. */
2418
+ name: string;
2419
+ /** OAuth 2.0 token for the current user. */
2420
+ oauth_token?: string;
2421
+ /** Returns response with indentations and line breaks. */
2422
+ prettyPrint?: boolean;
2423
+ /** 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. */
2424
+ quotaUser?: string;
2425
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2426
+ upload_protocol?: string;
2427
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2428
+ uploadType?: string;
2429
+ }): Request<WebApp>;
2430
+ /** Lists web apps for a given enterprise. */
2431
+ list(request?: {
2432
+ /** V1 error format. */
2433
+ "$.xgafv"?: string;
2434
+ /** OAuth access token. */
2435
+ access_token?: string;
2436
+ /** Data format for response. */
2437
+ alt?: string;
2438
+ /** JSONP */
2439
+ callback?: string;
2440
+ /** Selector specifying which fields to include in a partial response. */
2441
+ fields?: string;
2442
+ /** 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. */
2443
+ key?: string;
2444
+ /** OAuth 2.0 token for the current user. */
2445
+ oauth_token?: string;
2446
+ /** The requested page size. This is a hint and the actual page size in the response may be different. */
2447
+ pageSize?: number;
2448
+ /** A token identifying a page of results returned by the server. */
2449
+ pageToken?: string;
2450
+ /** The name of the enterprise in the form enterprises/{enterpriseId}. */
2451
+ parent: string;
2452
+ /** Returns response with indentations and line breaks. */
2453
+ prettyPrint?: boolean;
2454
+ /** 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. */
2455
+ quotaUser?: string;
2456
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2457
+ upload_protocol?: string;
2458
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2459
+ uploadType?: string;
2460
+ }): Request<ListWebAppsResponse>;
2461
+ /** Updates a web app. */
2462
+ patch(request: {
2463
+ /** V1 error format. */
2464
+ "$.xgafv"?: string;
2465
+ /** OAuth access token. */
2466
+ access_token?: string;
2467
+ /** Data format for response. */
2468
+ alt?: string;
2469
+ /** JSONP */
2470
+ callback?: string;
2471
+ /** Selector specifying which fields to include in a partial response. */
2472
+ fields?: string;
2473
+ /** 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. */
2474
+ key?: string;
2475
+ /** The name of the web app in the form enterprises/{enterpriseId}/webApps/{packageName}. */
2476
+ name: string;
2477
+ /** OAuth 2.0 token for the current user. */
2478
+ oauth_token?: string;
2479
+ /** Returns response with indentations and line breaks. */
2480
+ prettyPrint?: boolean;
2481
+ /** 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. */
2482
+ quotaUser?: string;
2483
+ /** The field mask indicating the fields to update. If not set, all modifiable fields will be modified. */
2484
+ updateMask?: string;
2485
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2486
+ upload_protocol?: string;
2487
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2488
+ uploadType?: string;
2489
+ /** Request body */
2490
+ resource: WebApp;
2491
+ }): Request<WebApp>;
2492
+ patch(request: {
2493
+ /** V1 error format. */
2494
+ "$.xgafv"?: string;
2495
+ /** OAuth access token. */
2496
+ access_token?: string;
2497
+ /** Data format for response. */
2498
+ alt?: string;
2499
+ /** JSONP */
2500
+ callback?: string;
2501
+ /** Selector specifying which fields to include in a partial response. */
2502
+ fields?: string;
2503
+ /** 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. */
2504
+ key?: string;
2505
+ /** The name of the web app in the form enterprises/{enterpriseId}/webApps/{packageName}. */
2506
+ name: string;
2507
+ /** OAuth 2.0 token for the current user. */
2508
+ oauth_token?: string;
2509
+ /** Returns response with indentations and line breaks. */
2510
+ prettyPrint?: boolean;
2511
+ /** 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. */
2512
+ quotaUser?: string;
2513
+ /** The field mask indicating the fields to update. If not set, all modifiable fields will be modified. */
2514
+ updateMask?: string;
2515
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2516
+ upload_protocol?: string;
2517
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2518
+ uploadType?: string;
2519
+ },
2520
+ body: WebApp): Request<WebApp>;
2521
+ }
2522
+ interface WebTokensResource {
2523
+ /** Creates a web token to access an embeddable managed Google Play web UI for a given enterprise. */
2524
+ create(request: {
2525
+ /** V1 error format. */
2526
+ "$.xgafv"?: string;
2527
+ /** OAuth access token. */
2528
+ access_token?: string;
2529
+ /** Data format for response. */
2530
+ alt?: string;
2531
+ /** JSONP */
2532
+ callback?: string;
2533
+ /** Selector specifying which fields to include in a partial response. */
2534
+ fields?: string;
2535
+ /** 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. */
2536
+ key?: string;
2537
+ /** OAuth 2.0 token for the current user. */
2538
+ oauth_token?: string;
2539
+ /** The name of the enterprise in the form enterprises/{enterpriseId}. */
2540
+ parent: string;
2541
+ /** Returns response with indentations and line breaks. */
2542
+ prettyPrint?: boolean;
2543
+ /** 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. */
2544
+ quotaUser?: string;
2545
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2546
+ upload_protocol?: string;
2547
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2548
+ uploadType?: string;
2549
+ /** Request body */
2550
+ resource: WebToken;
2551
+ }): Request<WebToken>;
2552
+ create(request: {
2553
+ /** V1 error format. */
2554
+ "$.xgafv"?: string;
2555
+ /** OAuth access token. */
2556
+ access_token?: string;
2557
+ /** Data format for response. */
2558
+ alt?: string;
2559
+ /** JSONP */
2560
+ callback?: string;
2561
+ /** Selector specifying which fields to include in a partial response. */
2562
+ fields?: string;
2563
+ /** 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. */
2564
+ key?: string;
2565
+ /** OAuth 2.0 token for the current user. */
2566
+ oauth_token?: string;
2567
+ /** The name of the enterprise in the form enterprises/{enterpriseId}. */
2568
+ parent: string;
2569
+ /** Returns response with indentations and line breaks. */
2570
+ prettyPrint?: boolean;
2571
+ /** 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. */
2572
+ quotaUser?: string;
2573
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2574
+ upload_protocol?: string;
2575
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2576
+ uploadType?: string;
2577
+ },
2578
+ body: WebToken): Request<WebToken>;
2579
+ }
2580
+ interface EnterprisesResource {
2581
+ /** Creates an enterprise. This is the last step in the enterprise signup flow. */
2582
+ create(request: {
2583
+ /** V1 error format. */
2584
+ "$.xgafv"?: string;
2585
+ /** OAuth access token. */
2586
+ access_token?: string;
2587
+ /**
2588
+ * Whether the enterprise admin has seen and agreed to the managed Google Play Agreement (https://www.android.com/enterprise/terms/). Do not set this field for any customer-managed
2589
+ * enterprise (https://developers.google.com/android/management/create-enterprise#customer-managed_enterprises). Set this to field to true for all EMM-managed enterprises
2590
+ * (https://developers.google.com/android/management/create-enterprise#emm-managed_enterprises).
2591
+ */
2592
+ agreementAccepted?: boolean;
2593
+ /** Data format for response. */
2594
+ alt?: string;
2595
+ /** JSONP */
2596
+ callback?: string;
2597
+ /**
2598
+ * The enterprise token appended to the callback URL. Set this when creating a customer-managed enterprise
2599
+ * (https://developers.google.com/android/management/create-enterprise#customer-managed_enterprises) and not when creating a deprecated EMM-managed enterprise
2600
+ * (https://developers.google.com/android/management/create-enterprise#emm-managed_enterprises).
2601
+ */
2602
+ enterpriseToken?: string;
2603
+ /** Selector specifying which fields to include in a partial response. */
2604
+ fields?: string;
2605
+ /** 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. */
2606
+ key?: string;
2607
+ /** OAuth 2.0 token for the current user. */
2608
+ oauth_token?: string;
2609
+ /** Returns response with indentations and line breaks. */
2610
+ prettyPrint?: boolean;
2611
+ /** The ID of the Google Cloud Platform project which will own the enterprise. */
2612
+ projectId?: string;
2613
+ /** 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. */
2614
+ quotaUser?: string;
2615
+ /**
2616
+ * The name of the SignupUrl used to sign up for the enterprise. Set this when creating a customer-managed enterprise
2617
+ * (https://developers.google.com/android/management/create-enterprise#customer-managed_enterprises) and not when creating a deprecated EMM-managed enterprise
2618
+ * (https://developers.google.com/android/management/create-enterprise#emm-managed_enterprises).
2619
+ */
2620
+ signupUrlName?: string;
2621
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2622
+ upload_protocol?: string;
2623
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2624
+ uploadType?: string;
2625
+ /** Request body */
2626
+ resource: Enterprise;
2627
+ }): Request<Enterprise>;
2628
+ create(request: {
2629
+ /** V1 error format. */
2630
+ "$.xgafv"?: string;
2631
+ /** OAuth access token. */
2632
+ access_token?: string;
2633
+ /**
2634
+ * Whether the enterprise admin has seen and agreed to the managed Google Play Agreement (https://www.android.com/enterprise/terms/). Do not set this field for any customer-managed
2635
+ * enterprise (https://developers.google.com/android/management/create-enterprise#customer-managed_enterprises). Set this to field to true for all EMM-managed enterprises
2636
+ * (https://developers.google.com/android/management/create-enterprise#emm-managed_enterprises).
2637
+ */
2638
+ agreementAccepted?: boolean;
2639
+ /** Data format for response. */
2640
+ alt?: string;
2641
+ /** JSONP */
2642
+ callback?: string;
2643
+ /**
2644
+ * The enterprise token appended to the callback URL. Set this when creating a customer-managed enterprise
2645
+ * (https://developers.google.com/android/management/create-enterprise#customer-managed_enterprises) and not when creating a deprecated EMM-managed enterprise
2646
+ * (https://developers.google.com/android/management/create-enterprise#emm-managed_enterprises).
2647
+ */
2648
+ enterpriseToken?: string;
2649
+ /** Selector specifying which fields to include in a partial response. */
2650
+ fields?: string;
2651
+ /** 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. */
2652
+ key?: string;
2653
+ /** OAuth 2.0 token for the current user. */
2654
+ oauth_token?: string;
2655
+ /** Returns response with indentations and line breaks. */
2656
+ prettyPrint?: boolean;
2657
+ /** The ID of the Google Cloud Platform project which will own the enterprise. */
2658
+ projectId?: string;
2659
+ /** 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. */
2660
+ quotaUser?: string;
2661
+ /**
2662
+ * The name of the SignupUrl used to sign up for the enterprise. Set this when creating a customer-managed enterprise
2663
+ * (https://developers.google.com/android/management/create-enterprise#customer-managed_enterprises) and not when creating a deprecated EMM-managed enterprise
2664
+ * (https://developers.google.com/android/management/create-enterprise#emm-managed_enterprises).
2665
+ */
2666
+ signupUrlName?: string;
2667
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2668
+ upload_protocol?: string;
2669
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2670
+ uploadType?: string;
2671
+ },
2672
+ body: Enterprise): Request<Enterprise>;
2673
+ /** Deletes an enterprise. Only available for EMM-managed enterprises. */
2674
+ delete(request?: {
2675
+ /** V1 error format. */
2676
+ "$.xgafv"?: string;
2677
+ /** OAuth access token. */
2678
+ access_token?: string;
2679
+ /** Data format for response. */
2680
+ alt?: string;
2681
+ /** JSONP */
2682
+ callback?: string;
2683
+ /** Selector specifying which fields to include in a partial response. */
2684
+ fields?: string;
2685
+ /** 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. */
2686
+ key?: string;
2687
+ /** The name of the enterprise in the form enterprises/{enterpriseId}. */
2688
+ name: string;
2689
+ /** OAuth 2.0 token for the current user. */
2690
+ oauth_token?: string;
2691
+ /** Returns response with indentations and line breaks. */
2692
+ prettyPrint?: boolean;
2693
+ /** 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. */
2694
+ quotaUser?: string;
2695
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2696
+ upload_protocol?: string;
2697
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2698
+ uploadType?: string;
2699
+ }): Request<{}>;
2700
+ /** Gets an enterprise. */
2701
+ get(request?: {
2702
+ /** V1 error format. */
2703
+ "$.xgafv"?: string;
2704
+ /** OAuth access token. */
2705
+ access_token?: string;
2706
+ /** Data format for response. */
2707
+ alt?: string;
2708
+ /** JSONP */
2709
+ callback?: string;
2710
+ /** Selector specifying which fields to include in a partial response. */
2711
+ fields?: string;
2712
+ /** 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. */
2713
+ key?: string;
2714
+ /** The name of the enterprise in the form enterprises/{enterpriseId}. */
2715
+ name: string;
2716
+ /** OAuth 2.0 token for the current user. */
2717
+ oauth_token?: string;
2718
+ /** Returns response with indentations and line breaks. */
2719
+ prettyPrint?: boolean;
2720
+ /** 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. */
2721
+ quotaUser?: string;
2722
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2723
+ upload_protocol?: string;
2724
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2725
+ uploadType?: string;
2726
+ }): Request<Enterprise>;
2727
+ /** Lists EMM-managed enterprises. Only BASIC fields are returned. */
2728
+ list(request?: {
2729
+ /** V1 error format. */
2730
+ "$.xgafv"?: string;
2731
+ /** OAuth access token. */
2732
+ access_token?: string;
2733
+ /** Data format for response. */
2734
+ alt?: string;
2735
+ /** JSONP */
2736
+ callback?: string;
2737
+ /** Selector specifying which fields to include in a partial response. */
2738
+ fields?: string;
2739
+ /** 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. */
2740
+ key?: string;
2741
+ /** OAuth 2.0 token for the current user. */
2742
+ oauth_token?: string;
2743
+ /** The requested page size. The actual page size may be fixed to a min or max value. */
2744
+ pageSize?: number;
2745
+ /** A token identifying a page of results returned by the server. */
2746
+ pageToken?: string;
2747
+ /** Returns response with indentations and line breaks. */
2748
+ prettyPrint?: boolean;
2749
+ /** Required. The Cloud project ID of the EMM managing the enterprises. */
2750
+ projectId?: string;
2751
+ /** 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. */
2752
+ quotaUser?: string;
2753
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2754
+ upload_protocol?: string;
2755
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2756
+ uploadType?: string;
2757
+ /** Specifies which Enterprise fields to return. This method only supports BASIC. */
2758
+ view?: string;
2759
+ }): Request<ListEnterprisesResponse>;
2760
+ /** Updates an enterprise. */
2761
+ patch(request: {
2762
+ /** V1 error format. */
2763
+ "$.xgafv"?: string;
2764
+ /** OAuth access token. */
2765
+ access_token?: string;
2766
+ /** Data format for response. */
2767
+ alt?: string;
2768
+ /** JSONP */
2769
+ callback?: string;
2770
+ /** Selector specifying which fields to include in a partial response. */
2771
+ fields?: string;
2772
+ /** 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. */
2773
+ key?: string;
2774
+ /** The name of the enterprise in the form enterprises/{enterpriseId}. */
2775
+ name: string;
2776
+ /** OAuth 2.0 token for the current user. */
2777
+ oauth_token?: string;
2778
+ /** Returns response with indentations and line breaks. */
2779
+ prettyPrint?: boolean;
2780
+ /** 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. */
2781
+ quotaUser?: string;
2782
+ /** The field mask indicating the fields to update. If not set, all modifiable fields will be modified. */
2783
+ updateMask?: string;
2784
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2785
+ upload_protocol?: string;
2786
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2787
+ uploadType?: string;
2788
+ /** Request body */
2789
+ resource: Enterprise;
2790
+ }): Request<Enterprise>;
2791
+ patch(request: {
2792
+ /** V1 error format. */
2793
+ "$.xgafv"?: string;
2794
+ /** OAuth access token. */
2795
+ access_token?: string;
2796
+ /** Data format for response. */
2797
+ alt?: string;
2798
+ /** JSONP */
2799
+ callback?: string;
2800
+ /** Selector specifying which fields to include in a partial response. */
2801
+ fields?: string;
2802
+ /** 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. */
2803
+ key?: string;
2804
+ /** The name of the enterprise in the form enterprises/{enterpriseId}. */
2805
+ name: string;
2806
+ /** OAuth 2.0 token for the current user. */
2807
+ oauth_token?: string;
2808
+ /** Returns response with indentations and line breaks. */
2809
+ prettyPrint?: boolean;
2810
+ /** 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. */
2811
+ quotaUser?: string;
2812
+ /** The field mask indicating the fields to update. If not set, all modifiable fields will be modified. */
2813
+ updateMask?: string;
2814
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2815
+ upload_protocol?: string;
2816
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2817
+ uploadType?: string;
2818
+ },
2819
+ body: Enterprise): Request<Enterprise>;
2820
+ applications: ApplicationsResource;
2821
+ devices: DevicesResource;
2822
+ enrollmentTokens: EnrollmentTokensResource;
2823
+ policies: PoliciesResource;
2824
+ webApps: WebAppsResource;
2825
+ webTokens: WebTokensResource;
2826
+ }
2827
+ interface SignupUrlsResource {
2828
+ /** Creates an enterprise signup URL. */
2829
+ create(request?: {
2830
+ /** V1 error format. */
2831
+ "$.xgafv"?: string;
2832
+ /** OAuth access token. */
2833
+ access_token?: string;
2834
+ /** Data format for response. */
2835
+ alt?: string;
2836
+ /** JSONP */
2837
+ callback?: string;
2838
+ /**
2839
+ * The callback URL that the admin will be redirected to after successfully creating an enterprise. Before redirecting there the system will add a query parameter to this URL named
2840
+ * enterpriseToken which will contain an opaque token to be used for the create enterprise request. The URL will be parsed then reformatted in order to add the enterpriseToken
2841
+ * parameter, so there may be some minor formatting changes.
2842
+ */
2843
+ callbackUrl?: string;
2844
+ /** Selector specifying which fields to include in a partial response. */
2845
+ fields?: string;
2846
+ /** 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. */
2847
+ key?: string;
2848
+ /** OAuth 2.0 token for the current user. */
2849
+ oauth_token?: string;
2850
+ /** Returns response with indentations and line breaks. */
2851
+ prettyPrint?: boolean;
2852
+ /** The ID of the Google Cloud Platform project which will own the enterprise. */
2853
+ projectId?: string;
2854
+ /** 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. */
2855
+ quotaUser?: string;
2856
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2857
+ upload_protocol?: string;
2858
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2859
+ uploadType?: string;
2860
+ }): Request<SignupUrl>;
2861
+ }
2862
+
2863
+ const enterprises: EnterprisesResource;
2864
+
2865
+ const signupUrls: SignupUrlsResource;
2866
+ }
2867
+ }