@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/tests.ts ADDED
@@ -0,0 +1,960 @@
1
+ /* This is stub file for gapi.client.androidmanagement-v1 definition tests */
2
+ // IMPORTANT
3
+ // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
+ // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
+
6
+ // Revision: 20220801
7
+
8
+ gapi.load('client', async () => {
9
+ /** now we can use gapi.client */
10
+
11
+ await gapi.client.load('https://androidmanagement.googleapis.com/$discovery/rest?version=v1');
12
+ /** now we can use gapi.client.androidmanagement */
13
+
14
+ /** don't forget to authenticate your client before sending any request to resources: */
15
+ /** declare client_id registered in Google Developers Console */
16
+ const client_id = '<<PUT YOUR CLIENT ID HERE>>';
17
+ const scope = [
18
+ /** Manage Android devices and apps for your customers */
19
+ 'https://www.googleapis.com/auth/androidmanagement',
20
+ ];
21
+ const immediate = false;
22
+ gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
23
+ if (authResult && !authResult.error) {
24
+ /** handle successful authorization */
25
+ run();
26
+ } else {
27
+ /** handle authorization error */
28
+ }
29
+ });
30
+
31
+ async function run() {
32
+ /** Creates an enterprise. This is the last step in the enterprise signup flow. */
33
+ await gapi.client.androidmanagement.enterprises.create({
34
+ agreementAccepted: true,
35
+ enterpriseToken: "Test string",
36
+ projectId: "Test string",
37
+ signupUrlName: "Test string",
38
+ }, {
39
+ appAutoApprovalEnabled: true,
40
+ contactInfo: {
41
+ contactEmail: "Test string",
42
+ dataProtectionOfficerEmail: "Test string",
43
+ dataProtectionOfficerName: "Test string",
44
+ dataProtectionOfficerPhone: "Test string",
45
+ euRepresentativeEmail: "Test string",
46
+ euRepresentativeName: "Test string",
47
+ euRepresentativePhone: "Test string",
48
+ },
49
+ enabledNotificationTypes: [
50
+ "Test string"
51
+ ],
52
+ enterpriseDisplayName: "Test string",
53
+ logo: {
54
+ sha256Hash: "Test string",
55
+ url: "Test string",
56
+ },
57
+ name: "Test string",
58
+ primaryColor: 42,
59
+ pubsubTopic: "Test string",
60
+ signinDetails: [
61
+ {
62
+ allowPersonalUsage: "Test string",
63
+ qrCode: "Test string",
64
+ signinEnrollmentToken: "Test string",
65
+ signinUrl: "Test string",
66
+ }
67
+ ],
68
+ termsAndConditions: [
69
+ {
70
+ content: {
71
+ defaultMessage: "Test string",
72
+ localizedMessages: {
73
+ A: "Test string"
74
+ },
75
+ },
76
+ header: {
77
+ defaultMessage: "Test string",
78
+ localizedMessages: {
79
+ A: "Test string"
80
+ },
81
+ },
82
+ }
83
+ ],
84
+ });
85
+ /** Deletes an enterprise. Only available for EMM-managed enterprises. */
86
+ await gapi.client.androidmanagement.enterprises.delete({
87
+ name: "Test string",
88
+ });
89
+ /** Gets an enterprise. */
90
+ await gapi.client.androidmanagement.enterprises.get({
91
+ name: "Test string",
92
+ });
93
+ /** Lists EMM-managed enterprises. Only BASIC fields are returned. */
94
+ await gapi.client.androidmanagement.enterprises.list({
95
+ pageSize: 42,
96
+ pageToken: "Test string",
97
+ projectId: "Test string",
98
+ view: "Test string",
99
+ });
100
+ /** Updates an enterprise. */
101
+ await gapi.client.androidmanagement.enterprises.patch({
102
+ name: "Test string",
103
+ updateMask: "Test string",
104
+ }, {
105
+ appAutoApprovalEnabled: true,
106
+ contactInfo: {
107
+ contactEmail: "Test string",
108
+ dataProtectionOfficerEmail: "Test string",
109
+ dataProtectionOfficerName: "Test string",
110
+ dataProtectionOfficerPhone: "Test string",
111
+ euRepresentativeEmail: "Test string",
112
+ euRepresentativeName: "Test string",
113
+ euRepresentativePhone: "Test string",
114
+ },
115
+ enabledNotificationTypes: [
116
+ "Test string"
117
+ ],
118
+ enterpriseDisplayName: "Test string",
119
+ logo: {
120
+ sha256Hash: "Test string",
121
+ url: "Test string",
122
+ },
123
+ name: "Test string",
124
+ primaryColor: 42,
125
+ pubsubTopic: "Test string",
126
+ signinDetails: [
127
+ {
128
+ allowPersonalUsage: "Test string",
129
+ qrCode: "Test string",
130
+ signinEnrollmentToken: "Test string",
131
+ signinUrl: "Test string",
132
+ }
133
+ ],
134
+ termsAndConditions: [
135
+ {
136
+ content: {
137
+ defaultMessage: "Test string",
138
+ localizedMessages: {
139
+ A: "Test string"
140
+ },
141
+ },
142
+ header: {
143
+ defaultMessage: "Test string",
144
+ localizedMessages: {
145
+ A: "Test string"
146
+ },
147
+ },
148
+ }
149
+ ],
150
+ });
151
+ /** Gets info about an application. */
152
+ await gapi.client.androidmanagement.enterprises.applications.get({
153
+ languageCode: "Test string",
154
+ name: "Test string",
155
+ });
156
+ /** Deletes a device. This operation wipes the device. */
157
+ await gapi.client.androidmanagement.enterprises.devices.delete({
158
+ name: "Test string",
159
+ wipeDataFlags: "Test string",
160
+ wipeReasonMessage: "Test string",
161
+ });
162
+ /** Gets a device. */
163
+ await gapi.client.androidmanagement.enterprises.devices.get({
164
+ name: "Test string",
165
+ });
166
+ /** 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. */
167
+ await gapi.client.androidmanagement.enterprises.devices.issueCommand({
168
+ name: "Test string",
169
+ }, {
170
+ clearAppsDataParams: {
171
+ packageNames: [
172
+ "Test string"
173
+ ],
174
+ },
175
+ clearAppsDataStatus: {
176
+ results: {
177
+ A: {
178
+ clearingResult: "Test string",
179
+ }
180
+ },
181
+ },
182
+ createTime: "Test string",
183
+ duration: "Test string",
184
+ errorCode: "Test string",
185
+ newPassword: "Test string",
186
+ resetPasswordFlags: [
187
+ "Test string"
188
+ ],
189
+ type: "Test string",
190
+ userName: "Test string",
191
+ });
192
+ /** Lists devices for a given enterprise. */
193
+ await gapi.client.androidmanagement.enterprises.devices.list({
194
+ pageSize: 42,
195
+ pageToken: "Test string",
196
+ parent: "Test string",
197
+ });
198
+ /** Updates a device. */
199
+ await gapi.client.androidmanagement.enterprises.devices.patch({
200
+ name: "Test string",
201
+ updateMask: "Test string",
202
+ }, {
203
+ apiLevel: 42,
204
+ applicationReports: [
205
+ {
206
+ applicationSource: "Test string",
207
+ displayName: "Test string",
208
+ events: [
209
+ {
210
+ createTime: "Test string",
211
+ eventType: "Test string",
212
+ }
213
+ ],
214
+ installerPackageName: "Test string",
215
+ keyedAppStates: [
216
+ {
217
+ createTime: "Test string",
218
+ data: "Test string",
219
+ key: "Test string",
220
+ lastUpdateTime: "Test string",
221
+ message: "Test string",
222
+ severity: "Test string",
223
+ }
224
+ ],
225
+ packageName: "Test string",
226
+ packageSha256Hash: "Test string",
227
+ signingKeyCertFingerprints: [
228
+ "Test string"
229
+ ],
230
+ state: "Test string",
231
+ versionCode: 42,
232
+ versionName: "Test string",
233
+ }
234
+ ],
235
+ appliedPasswordPolicies: [
236
+ {
237
+ maximumFailedPasswordsForWipe: 42,
238
+ passwordExpirationTimeout: "Test string",
239
+ passwordHistoryLength: 42,
240
+ passwordMinimumLength: 42,
241
+ passwordMinimumLetters: 42,
242
+ passwordMinimumLowerCase: 42,
243
+ passwordMinimumNonLetter: 42,
244
+ passwordMinimumNumeric: 42,
245
+ passwordMinimumSymbols: 42,
246
+ passwordMinimumUpperCase: 42,
247
+ passwordQuality: "Test string",
248
+ passwordScope: "Test string",
249
+ requirePasswordUnlock: "Test string",
250
+ unifiedLockSettings: "Test string",
251
+ }
252
+ ],
253
+ appliedPolicyName: "Test string",
254
+ appliedPolicyVersion: "Test string",
255
+ appliedState: "Test string",
256
+ commonCriteriaModeInfo: {
257
+ commonCriteriaModeStatus: "Test string",
258
+ },
259
+ deviceSettings: {
260
+ adbEnabled: true,
261
+ developmentSettingsEnabled: true,
262
+ encryptionStatus: "Test string",
263
+ isDeviceSecure: true,
264
+ isEncrypted: true,
265
+ unknownSourcesEnabled: true,
266
+ verifyAppsEnabled: true,
267
+ },
268
+ disabledReason: {
269
+ defaultMessage: "Test string",
270
+ localizedMessages: {
271
+ A: "Test string"
272
+ },
273
+ },
274
+ displays: [
275
+ {
276
+ density: 42,
277
+ displayId: 42,
278
+ height: 42,
279
+ name: "Test string",
280
+ refreshRate: 42,
281
+ state: "Test string",
282
+ width: 42,
283
+ }
284
+ ],
285
+ enrollmentTime: "Test string",
286
+ enrollmentTokenData: "Test string",
287
+ enrollmentTokenName: "Test string",
288
+ hardwareInfo: {
289
+ batteryShutdownTemperatures: [
290
+ 42
291
+ ],
292
+ batteryThrottlingTemperatures: [
293
+ 42
294
+ ],
295
+ brand: "Test string",
296
+ cpuShutdownTemperatures: [
297
+ 42
298
+ ],
299
+ cpuThrottlingTemperatures: [
300
+ 42
301
+ ],
302
+ deviceBasebandVersion: "Test string",
303
+ enterpriseSpecificId: "Test string",
304
+ gpuShutdownTemperatures: [
305
+ 42
306
+ ],
307
+ gpuThrottlingTemperatures: [
308
+ 42
309
+ ],
310
+ hardware: "Test string",
311
+ manufacturer: "Test string",
312
+ model: "Test string",
313
+ serialNumber: "Test string",
314
+ skinShutdownTemperatures: [
315
+ 42
316
+ ],
317
+ skinThrottlingTemperatures: [
318
+ 42
319
+ ],
320
+ },
321
+ hardwareStatusSamples: [
322
+ {
323
+ batteryTemperatures: [
324
+ 42
325
+ ],
326
+ cpuTemperatures: [
327
+ 42
328
+ ],
329
+ cpuUsages: [
330
+ 42
331
+ ],
332
+ createTime: "Test string",
333
+ fanSpeeds: [
334
+ 42
335
+ ],
336
+ gpuTemperatures: [
337
+ 42
338
+ ],
339
+ skinTemperatures: [
340
+ 42
341
+ ],
342
+ }
343
+ ],
344
+ lastPolicyComplianceReportTime: "Test string",
345
+ lastPolicySyncTime: "Test string",
346
+ lastStatusReportTime: "Test string",
347
+ managementMode: "Test string",
348
+ memoryEvents: [
349
+ {
350
+ byteCount: "Test string",
351
+ createTime: "Test string",
352
+ eventType: "Test string",
353
+ }
354
+ ],
355
+ memoryInfo: {
356
+ totalInternalStorage: "Test string",
357
+ totalRam: "Test string",
358
+ },
359
+ name: "Test string",
360
+ networkInfo: {
361
+ imei: "Test string",
362
+ meid: "Test string",
363
+ networkOperatorName: "Test string",
364
+ telephonyInfos: [
365
+ {
366
+ carrierName: "Test string",
367
+ phoneNumber: "Test string",
368
+ }
369
+ ],
370
+ wifiMacAddress: "Test string",
371
+ },
372
+ nonComplianceDetails: [
373
+ {
374
+ currentValue: 42,
375
+ fieldPath: "Test string",
376
+ installationFailureReason: "Test string",
377
+ nonComplianceReason: "Test string",
378
+ packageName: "Test string",
379
+ settingName: "Test string",
380
+ specificNonComplianceContext: {
381
+ oncWifiContext: {
382
+ wifiGuid: "Test string",
383
+ },
384
+ passwordPoliciesContext: {
385
+ passwordPolicyScope: "Test string",
386
+ },
387
+ },
388
+ specificNonComplianceReason: "Test string",
389
+ }
390
+ ],
391
+ ownership: "Test string",
392
+ policyCompliant: true,
393
+ policyName: "Test string",
394
+ powerManagementEvents: [
395
+ {
396
+ batteryLevel: 42,
397
+ createTime: "Test string",
398
+ eventType: "Test string",
399
+ }
400
+ ],
401
+ previousDeviceNames: [
402
+ "Test string"
403
+ ],
404
+ securityPosture: {
405
+ devicePosture: "Test string",
406
+ postureDetails: [
407
+ {
408
+ advice: [
409
+ {
410
+ defaultMessage: "Test string",
411
+ localizedMessages: {
412
+ A: "Test string"
413
+ },
414
+ }
415
+ ],
416
+ securityRisk: "Test string",
417
+ }
418
+ ],
419
+ },
420
+ softwareInfo: {
421
+ androidBuildNumber: "Test string",
422
+ androidBuildTime: "Test string",
423
+ androidDevicePolicyVersionCode: 42,
424
+ androidDevicePolicyVersionName: "Test string",
425
+ androidVersion: "Test string",
426
+ bootloaderVersion: "Test string",
427
+ deviceBuildSignature: "Test string",
428
+ deviceKernelVersion: "Test string",
429
+ primaryLanguageCode: "Test string",
430
+ securityPatchLevel: "Test string",
431
+ systemUpdateInfo: {
432
+ updateReceivedTime: "Test string",
433
+ updateStatus: "Test string",
434
+ },
435
+ },
436
+ state: "Test string",
437
+ systemProperties: {
438
+ A: "Test string"
439
+ },
440
+ user: {
441
+ accountIdentifier: "Test string",
442
+ },
443
+ userName: "Test string",
444
+ });
445
+ /**
446
+ * 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 this
447
+ * 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 completed
448
+ * despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1,
449
+ * corresponding to Code.CANCELLED.
450
+ */
451
+ await gapi.client.androidmanagement.enterprises.devices.operations.cancel({
452
+ name: "Test string",
453
+ });
454
+ /**
455
+ * 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 support
456
+ * this method, it returns google.rpc.Code.UNIMPLEMENTED.
457
+ */
458
+ await gapi.client.androidmanagement.enterprises.devices.operations.delete({
459
+ name: "Test string",
460
+ });
461
+ /** 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. */
462
+ await gapi.client.androidmanagement.enterprises.devices.operations.get({
463
+ name: "Test string",
464
+ });
465
+ /**
466
+ * 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
467
+ * 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 "/v1/{name=users/*}/operations"
468
+ * to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent
469
+ * resource, without the operations collection id.
470
+ */
471
+ await gapi.client.androidmanagement.enterprises.devices.operations.list({
472
+ filter: "Test string",
473
+ name: "Test string",
474
+ pageSize: 42,
475
+ pageToken: "Test string",
476
+ });
477
+ /**
478
+ * 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 intended to
479
+ * 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 securely store the
480
+ * token if it's intended to be reused.
481
+ */
482
+ await gapi.client.androidmanagement.enterprises.enrollmentTokens.create({
483
+ parent: "Test string",
484
+ }, {
485
+ additionalData: "Test string",
486
+ allowPersonalUsage: "Test string",
487
+ duration: "Test string",
488
+ expirationTimestamp: "Test string",
489
+ name: "Test string",
490
+ oneTimeOnly: true,
491
+ policyName: "Test string",
492
+ qrCode: "Test string",
493
+ user: {
494
+ accountIdentifier: "Test string",
495
+ },
496
+ value: "Test string",
497
+ });
498
+ /** Deletes an enrollment token. This operation invalidates the token, preventing its future use. */
499
+ await gapi.client.androidmanagement.enterprises.enrollmentTokens.delete({
500
+ name: "Test string",
501
+ });
502
+ /**
503
+ * 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 help
504
+ * 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.
505
+ */
506
+ await gapi.client.androidmanagement.enterprises.enrollmentTokens.get({
507
+ name: "Test string",
508
+ });
509
+ /**
510
+ * 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
511
+ * 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 intended
512
+ * to be used anymore.
513
+ */
514
+ await gapi.client.androidmanagement.enterprises.enrollmentTokens.list({
515
+ pageSize: 42,
516
+ pageToken: "Test string",
517
+ parent: "Test string",
518
+ });
519
+ /** Deletes a policy. This operation is only permitted if no devices are currently referencing the policy. */
520
+ await gapi.client.androidmanagement.enterprises.policies.delete({
521
+ name: "Test string",
522
+ });
523
+ /** Gets a policy. */
524
+ await gapi.client.androidmanagement.enterprises.policies.get({
525
+ name: "Test string",
526
+ });
527
+ /** Lists policies for a given enterprise. */
528
+ await gapi.client.androidmanagement.enterprises.policies.list({
529
+ pageSize: 42,
530
+ pageToken: "Test string",
531
+ parent: "Test string",
532
+ });
533
+ /** Updates or creates a policy. */
534
+ await gapi.client.androidmanagement.enterprises.policies.patch({
535
+ name: "Test string",
536
+ updateMask: "Test string",
537
+ }, {
538
+ accountTypesWithManagementDisabled: [
539
+ "Test string"
540
+ ],
541
+ addUserDisabled: true,
542
+ adjustVolumeDisabled: true,
543
+ advancedSecurityOverrides: {
544
+ commonCriteriaMode: "Test string",
545
+ developerSettings: "Test string",
546
+ googlePlayProtectVerifyApps: "Test string",
547
+ personalAppsThatCanReadWorkNotifications: [
548
+ "Test string"
549
+ ],
550
+ untrustedAppsPolicy: "Test string",
551
+ },
552
+ alwaysOnVpnPackage: {
553
+ lockdownEnabled: true,
554
+ packageName: "Test string",
555
+ },
556
+ androidDevicePolicyTracks: [
557
+ "Test string"
558
+ ],
559
+ appAutoUpdatePolicy: "Test string",
560
+ applications: [
561
+ {
562
+ accessibleTrackIds: [
563
+ "Test string"
564
+ ],
565
+ alwaysOnVpnLockdownExemption: "Test string",
566
+ autoUpdateMode: "Test string",
567
+ connectedWorkAndPersonalApp: "Test string",
568
+ defaultPermissionPolicy: "Test string",
569
+ delegatedScopes: [
570
+ "Test string"
571
+ ],
572
+ disabled: true,
573
+ extensionConfig: {
574
+ notificationReceiver: "Test string",
575
+ signingKeyFingerprintsSha256: [
576
+ "Test string"
577
+ ],
578
+ },
579
+ installType: "Test string",
580
+ lockTaskAllowed: true,
581
+ managedConfiguration: {
582
+ A: 42
583
+ },
584
+ managedConfigurationTemplate: {
585
+ configurationVariables: {
586
+ A: "Test string"
587
+ },
588
+ templateId: "Test string",
589
+ },
590
+ minimumVersionCode: 42,
591
+ packageName: "Test string",
592
+ permissionGrants: [
593
+ {
594
+ permission: "Test string",
595
+ policy: "Test string",
596
+ }
597
+ ],
598
+ }
599
+ ],
600
+ autoDateAndTimeZone: "Test string",
601
+ autoTimeRequired: true,
602
+ blockApplicationsEnabled: true,
603
+ bluetoothConfigDisabled: true,
604
+ bluetoothContactSharingDisabled: true,
605
+ bluetoothDisabled: true,
606
+ cameraAccess: "Test string",
607
+ cameraDisabled: true,
608
+ cellBroadcastsConfigDisabled: true,
609
+ choosePrivateKeyRules: [
610
+ {
611
+ packageNames: [
612
+ "Test string"
613
+ ],
614
+ privateKeyAlias: "Test string",
615
+ urlPattern: "Test string",
616
+ }
617
+ ],
618
+ complianceRules: [
619
+ {
620
+ apiLevelCondition: {
621
+ minApiLevel: 42,
622
+ },
623
+ disableApps: true,
624
+ nonComplianceDetailCondition: {
625
+ nonComplianceReason: "Test string",
626
+ packageName: "Test string",
627
+ settingName: "Test string",
628
+ },
629
+ packageNamesToDisable: [
630
+ "Test string"
631
+ ],
632
+ }
633
+ ],
634
+ createWindowsDisabled: true,
635
+ credentialsConfigDisabled: true,
636
+ crossProfilePolicies: {
637
+ crossProfileCopyPaste: "Test string",
638
+ crossProfileDataSharing: "Test string",
639
+ showWorkContactsInPersonalProfile: "Test string",
640
+ },
641
+ dataRoamingDisabled: true,
642
+ debuggingFeaturesAllowed: true,
643
+ defaultPermissionPolicy: "Test string",
644
+ deviceOwnerLockScreenInfo: {
645
+ defaultMessage: "Test string",
646
+ localizedMessages: {
647
+ A: "Test string"
648
+ },
649
+ },
650
+ encryptionPolicy: "Test string",
651
+ ensureVerifyAppsEnabled: true,
652
+ factoryResetDisabled: true,
653
+ frpAdminEmails: [
654
+ "Test string"
655
+ ],
656
+ funDisabled: true,
657
+ installAppsDisabled: true,
658
+ installUnknownSourcesAllowed: true,
659
+ keyguardDisabled: true,
660
+ keyguardDisabledFeatures: [
661
+ "Test string"
662
+ ],
663
+ kioskCustomization: {
664
+ deviceSettings: "Test string",
665
+ powerButtonActions: "Test string",
666
+ statusBar: "Test string",
667
+ systemErrorWarnings: "Test string",
668
+ systemNavigation: "Test string",
669
+ },
670
+ kioskCustomLauncherEnabled: true,
671
+ locationMode: "Test string",
672
+ longSupportMessage: {
673
+ defaultMessage: "Test string",
674
+ localizedMessages: {
675
+ A: "Test string"
676
+ },
677
+ },
678
+ maximumTimeToLock: "Test string",
679
+ microphoneAccess: "Test string",
680
+ minimumApiLevel: 42,
681
+ mobileNetworksConfigDisabled: true,
682
+ modifyAccountsDisabled: true,
683
+ mountPhysicalMediaDisabled: true,
684
+ name: "Test string",
685
+ networkEscapeHatchEnabled: true,
686
+ networkResetDisabled: true,
687
+ oncCertificateProviders: [
688
+ {
689
+ certificateReferences: [
690
+ "Test string"
691
+ ],
692
+ contentProviderEndpoint: {
693
+ packageName: "Test string",
694
+ signingCertsSha256: [
695
+ "Test string"
696
+ ],
697
+ uri: "Test string",
698
+ },
699
+ }
700
+ ],
701
+ openNetworkConfiguration: {
702
+ A: 42
703
+ },
704
+ outgoingBeamDisabled: true,
705
+ outgoingCallsDisabled: true,
706
+ passwordPolicies: [
707
+ {
708
+ maximumFailedPasswordsForWipe: 42,
709
+ passwordExpirationTimeout: "Test string",
710
+ passwordHistoryLength: 42,
711
+ passwordMinimumLength: 42,
712
+ passwordMinimumLetters: 42,
713
+ passwordMinimumLowerCase: 42,
714
+ passwordMinimumNonLetter: 42,
715
+ passwordMinimumNumeric: 42,
716
+ passwordMinimumSymbols: 42,
717
+ passwordMinimumUpperCase: 42,
718
+ passwordQuality: "Test string",
719
+ passwordScope: "Test string",
720
+ requirePasswordUnlock: "Test string",
721
+ unifiedLockSettings: "Test string",
722
+ }
723
+ ],
724
+ passwordRequirements: {
725
+ maximumFailedPasswordsForWipe: 42,
726
+ passwordExpirationTimeout: "Test string",
727
+ passwordHistoryLength: 42,
728
+ passwordMinimumLength: 42,
729
+ passwordMinimumLetters: 42,
730
+ passwordMinimumLowerCase: 42,
731
+ passwordMinimumNonLetter: 42,
732
+ passwordMinimumNumeric: 42,
733
+ passwordMinimumSymbols: 42,
734
+ passwordMinimumUpperCase: 42,
735
+ passwordQuality: "Test string",
736
+ passwordScope: "Test string",
737
+ requirePasswordUnlock: "Test string",
738
+ unifiedLockSettings: "Test string",
739
+ },
740
+ permissionGrants: [
741
+ {
742
+ permission: "Test string",
743
+ policy: "Test string",
744
+ }
745
+ ],
746
+ permittedAccessibilityServices: {
747
+ packageNames: [
748
+ "Test string"
749
+ ],
750
+ },
751
+ permittedInputMethods: {
752
+ packageNames: [
753
+ "Test string"
754
+ ],
755
+ },
756
+ persistentPreferredActivities: [
757
+ {
758
+ actions: [
759
+ "Test string"
760
+ ],
761
+ categories: [
762
+ "Test string"
763
+ ],
764
+ receiverActivity: "Test string",
765
+ }
766
+ ],
767
+ personalUsagePolicies: {
768
+ accountTypesWithManagementDisabled: [
769
+ "Test string"
770
+ ],
771
+ cameraDisabled: true,
772
+ maxDaysWithWorkOff: 42,
773
+ personalApplications: [
774
+ {
775
+ installType: "Test string",
776
+ packageName: "Test string",
777
+ }
778
+ ],
779
+ personalPlayStoreMode: "Test string",
780
+ screenCaptureDisabled: true,
781
+ },
782
+ playStoreMode: "Test string",
783
+ policyEnforcementRules: [
784
+ {
785
+ blockAction: {
786
+ blockAfterDays: 42,
787
+ blockScope: "Test string",
788
+ },
789
+ settingName: "Test string",
790
+ wipeAction: {
791
+ preserveFrp: true,
792
+ wipeAfterDays: 42,
793
+ },
794
+ }
795
+ ],
796
+ preferentialNetworkService: "Test string",
797
+ privateKeySelectionEnabled: true,
798
+ recommendedGlobalProxy: {
799
+ excludedHosts: [
800
+ "Test string"
801
+ ],
802
+ host: "Test string",
803
+ pacUri: "Test string",
804
+ port: 42,
805
+ },
806
+ removeUserDisabled: true,
807
+ safeBootDisabled: true,
808
+ screenCaptureDisabled: true,
809
+ setupActions: [
810
+ {
811
+ description: {
812
+ defaultMessage: "Test string",
813
+ localizedMessages: {
814
+ A: "Test string"
815
+ },
816
+ },
817
+ launchApp: {
818
+ packageName: "Test string",
819
+ },
820
+ title: {
821
+ defaultMessage: "Test string",
822
+ localizedMessages: {
823
+ A: "Test string"
824
+ },
825
+ },
826
+ }
827
+ ],
828
+ setUserIconDisabled: true,
829
+ setWallpaperDisabled: true,
830
+ shareLocationDisabled: true,
831
+ shortSupportMessage: {
832
+ defaultMessage: "Test string",
833
+ localizedMessages: {
834
+ A: "Test string"
835
+ },
836
+ },
837
+ skipFirstUseHintsEnabled: true,
838
+ smsDisabled: true,
839
+ statusBarDisabled: true,
840
+ statusReportingSettings: {
841
+ applicationReportingSettings: {
842
+ includeRemovedApps: true,
843
+ },
844
+ applicationReportsEnabled: true,
845
+ commonCriteriaModeEnabled: true,
846
+ deviceSettingsEnabled: true,
847
+ displayInfoEnabled: true,
848
+ hardwareStatusEnabled: true,
849
+ memoryInfoEnabled: true,
850
+ networkInfoEnabled: true,
851
+ powerManagementEventsEnabled: true,
852
+ softwareInfoEnabled: true,
853
+ systemPropertiesEnabled: true,
854
+ },
855
+ stayOnPluggedModes: [
856
+ "Test string"
857
+ ],
858
+ systemUpdate: {
859
+ endMinutes: 42,
860
+ freezePeriods: [
861
+ {
862
+ endDate: {
863
+ day: 42,
864
+ month: 42,
865
+ year: 42,
866
+ },
867
+ startDate: {
868
+ day: 42,
869
+ month: 42,
870
+ year: 42,
871
+ },
872
+ }
873
+ ],
874
+ startMinutes: 42,
875
+ type: "Test string",
876
+ },
877
+ tetheringConfigDisabled: true,
878
+ uninstallAppsDisabled: true,
879
+ unmuteMicrophoneDisabled: true,
880
+ usageLog: {
881
+ enabledLogTypes: [
882
+ "Test string"
883
+ ],
884
+ uploadOnCellularAllowed: [
885
+ "Test string"
886
+ ],
887
+ },
888
+ usbFileTransferDisabled: true,
889
+ usbMassStorageEnabled: true,
890
+ version: "Test string",
891
+ vpnConfigDisabled: true,
892
+ wifiConfigDisabled: true,
893
+ wifiConfigsLockdownEnabled: true,
894
+ });
895
+ /** Creates a web app. */
896
+ await gapi.client.androidmanagement.enterprises.webApps.create({
897
+ parent: "Test string",
898
+ }, {
899
+ displayMode: "Test string",
900
+ icons: [
901
+ {
902
+ imageData: "Test string",
903
+ }
904
+ ],
905
+ name: "Test string",
906
+ startUrl: "Test string",
907
+ title: "Test string",
908
+ versionCode: "Test string",
909
+ });
910
+ /** Deletes a web app. */
911
+ await gapi.client.androidmanagement.enterprises.webApps.delete({
912
+ name: "Test string",
913
+ });
914
+ /** Gets a web app. */
915
+ await gapi.client.androidmanagement.enterprises.webApps.get({
916
+ name: "Test string",
917
+ });
918
+ /** Lists web apps for a given enterprise. */
919
+ await gapi.client.androidmanagement.enterprises.webApps.list({
920
+ pageSize: 42,
921
+ pageToken: "Test string",
922
+ parent: "Test string",
923
+ });
924
+ /** Updates a web app. */
925
+ await gapi.client.androidmanagement.enterprises.webApps.patch({
926
+ name: "Test string",
927
+ updateMask: "Test string",
928
+ }, {
929
+ displayMode: "Test string",
930
+ icons: [
931
+ {
932
+ imageData: "Test string",
933
+ }
934
+ ],
935
+ name: "Test string",
936
+ startUrl: "Test string",
937
+ title: "Test string",
938
+ versionCode: "Test string",
939
+ });
940
+ /** Creates a web token to access an embeddable managed Google Play web UI for a given enterprise. */
941
+ await gapi.client.androidmanagement.enterprises.webTokens.create({
942
+ parent: "Test string",
943
+ }, {
944
+ enabledFeatures: [
945
+ "Test string"
946
+ ],
947
+ name: "Test string",
948
+ parentFrameUrl: "Test string",
949
+ permissions: [
950
+ "Test string"
951
+ ],
952
+ value: "Test string",
953
+ });
954
+ /** Creates an enterprise signup URL. */
955
+ await gapi.client.androidmanagement.signupUrls.create({
956
+ callbackUrl: "Test string",
957
+ projectId: "Test string",
958
+ });
959
+ }
960
+ });