v1.d.ts
237 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
/**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
import { GaxiosPromise } from 'gaxios';
export declare namespace androidenterprise_v1 {
export interface Options extends GlobalOptions {
version: 'v1';
}
interface StandardParameters {
/**
* Data format for the response.
*/
alt?: string;
/**
* Selector specifying which fields to include in a partial response.
*/
fields?: string;
/**
* 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.
*/
key?: string;
/**
* OAuth 2.0 token for the current user.
*/
oauth_token?: string;
/**
* Returns response with indentations and line breaks.
*/
prettyPrint?: boolean;
/**
* An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
*/
quotaUser?: string;
/**
* Deprecated. Please use quotaUser instead.
*/
userIp?: string;
}
/**
* Google Play EMM API
*
* Manages the deployment of apps to Android for Work users.
*
* @example
* const {google} = require('googleapis');
* const androidenterprise = google.androidenterprise('v1');
*
* @namespace androidenterprise
* @type {Function}
* @version v1
* @variation v1
* @param {object=} options Options for Androidenterprise
*/
export class Androidenterprise {
context: APIRequestContext;
devices: Resource$Devices;
enterprises: Resource$Enterprises;
entitlements: Resource$Entitlements;
grouplicenses: Resource$Grouplicenses;
grouplicenseusers: Resource$Grouplicenseusers;
installs: Resource$Installs;
managedconfigurationsfordevice: Resource$Managedconfigurationsfordevice;
managedconfigurationsforuser: Resource$Managedconfigurationsforuser;
managedconfigurationssettings: Resource$Managedconfigurationssettings;
permissions: Resource$Permissions;
products: Resource$Products;
serviceaccountkeys: Resource$Serviceaccountkeys;
storelayoutclusters: Resource$Storelayoutclusters;
storelayoutpages: Resource$Storelayoutpages;
users: Resource$Users;
webapps: Resource$Webapps;
constructor(options: GlobalOptions, google?: GoogleConfigurable);
}
/**
* This represents an enterprise admin who can manage the enterprise in the managed Google Play store.
*/
export interface Schema$Administrator {
/**
* The admin's email address.
*/
email?: string | null;
}
/**
* A token authorizing an admin to access an iframe.
*/
export interface Schema$AdministratorWebToken {
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#administratorWebToken".
*/
kind?: string | null;
/**
* An opaque token to be passed to the Play front-end to generate an iframe.
*/
token?: string | null;
}
/**
* Specification for a token used to generate iframes. The token specifies what data the admin is allowed to modify and the URI the iframe is allowed to communiate with.
*/
export interface Schema$AdministratorWebTokenSpec {
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#administratorWebTokenSpec".
*/
kind?: string | null;
/**
* Options for displaying the Managed Configuration page.
*/
managedConfigurations?: Schema$AdministratorWebTokenSpecManagedConfigurations;
/**
* The URI of the parent frame hosting the iframe. To prevent XSS, the iframe may not be hosted at other URIs. This URI must be https. Use whitespaces to separate multiple parent URIs.
*/
parent?: string | null;
/**
* Deprecated. Use PlaySearch.approveApps.
*/
permission?: string[] | null;
/**
* Options for displaying the managed Play Search apps page.
*/
playSearch?: Schema$AdministratorWebTokenSpecPlaySearch;
/**
* Options for displaying the Private Apps page.
*/
privateApps?: Schema$AdministratorWebTokenSpecPrivateApps;
/**
* Options for displaying the Organize apps page.
*/
storeBuilder?: Schema$AdministratorWebTokenSpecStoreBuilder;
/**
* Options for displaying the Web Apps page.
*/
webApps?: Schema$AdministratorWebTokenSpecWebApps;
}
export interface Schema$AdministratorWebTokenSpecManagedConfigurations {
/**
* Whether the Managed Configuration page is displayed. Default is true.
*/
enabled?: boolean | null;
}
export interface Schema$AdministratorWebTokenSpecPlaySearch {
/**
* Allow access to the iframe in approve mode. Default is false.
*/
approveApps?: boolean | null;
/**
* Whether the managed Play Search apps page is displayed. Default is true.
*/
enabled?: boolean | null;
}
export interface Schema$AdministratorWebTokenSpecPrivateApps {
/**
* Whether the Private Apps page is displayed. Default is true.
*/
enabled?: boolean | null;
}
export interface Schema$AdministratorWebTokenSpecStoreBuilder {
/**
* Whether the Organize apps page is displayed. Default is true.
*/
enabled?: boolean | null;
}
export interface Schema$AdministratorWebTokenSpecWebApps {
/**
* Whether the Web Apps page is displayed. Default is true.
*/
enabled?: boolean | null;
}
/**
* Represents the list of app restrictions available to be pre-configured for the product.
*/
export interface Schema$AppRestrictionsSchema {
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#appRestrictionsSchema".
*/
kind?: string | null;
/**
* The set of restrictions that make up this schema.
*/
restrictions?: Schema$AppRestrictionsSchemaRestriction[];
}
/**
* An event generated when a new app version is uploaded to Google Play and its app restrictions schema changed. To fetch the app restrictions schema for an app, use Products.getAppRestrictionsSchema on the EMM API.
*/
export interface Schema$AppRestrictionsSchemaChangeEvent {
/**
* The id of the product (e.g. "app:com.google.android.gm") for which the app restriction schema changed. This field will always be present.
*/
productId?: string | null;
}
/**
* A restriction in the App Restriction Schema represents a piece of configuration that may be pre-applied.
*/
export interface Schema$AppRestrictionsSchemaRestriction {
/**
* The default value of the restriction. bundle and bundleArray restrictions never have a default value.
*/
defaultValue?: Schema$AppRestrictionsSchemaRestrictionRestrictionValue;
/**
* A longer description of the restriction, giving more detail of what it affects.
*/
description?: string | null;
/**
* For choice or multiselect restrictions, the list of possible entries' human-readable names.
*/
entry?: string[] | null;
/**
* For choice or multiselect restrictions, the list of possible entries' machine-readable values. These values should be used in the configuration, either as a single string value for a choice restriction or in a stringArray for a multiselect restriction.
*/
entryValue?: string[] | null;
/**
* The unique key that the product uses to identify the restriction, e.g. "com.google.android.gm.fieldname".
*/
key?: string | null;
/**
* For bundle or bundleArray restrictions, the list of nested restrictions. A bundle restriction is always nested within a bundleArray restriction, and a bundleArray restriction is at most two levels deep.
*/
nestedRestriction?: Schema$AppRestrictionsSchemaRestriction[];
/**
* The type of the restriction.
*/
restrictionType?: string | null;
/**
* The name of the restriction.
*/
title?: string | null;
}
/**
* A typed value for the restriction.
*/
export interface Schema$AppRestrictionsSchemaRestrictionRestrictionValue {
/**
* The type of the value being provided.
*/
type?: string | null;
/**
* The boolean value - this will only be present if type is bool.
*/
valueBool?: boolean | null;
/**
* The integer value - this will only be present if type is integer.
*/
valueInteger?: number | null;
/**
* The list of string values - this will only be present if type is multiselect.
*/
valueMultiselect?: string[] | null;
/**
* The string value - this will be present for types string, choice and hidden.
*/
valueString?: string | null;
}
/**
* Information on an approval URL.
*/
export interface Schema$ApprovalUrlInfo {
/**
* A URL that displays a product's permissions and that can also be used to approve the product with the Products.approve call.
*/
approvalUrl?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#approvalUrlInfo".
*/
kind?: string | null;
}
/**
* List of states set by the app.
*/
export interface Schema$AppState {
/**
* List of keyed app states. This field will always be present.
*/
keyedAppState?: Schema$KeyedAppState[];
/**
* The package name of the app. This field will always be present.
*/
packageName?: string | null;
}
/**
* An event generated when a new version of an app is uploaded to Google Play. Notifications are sent for new public versions only: alpha, beta, or canary versions do not generate this event. To fetch up-to-date version history for an app, use Products.Get on the EMM API.
*/
export interface Schema$AppUpdateEvent {
/**
* The id of the product (e.g. "app:com.google.android.gm") that was updated. This field will always be present.
*/
productId?: string | null;
}
/**
* This represents a single version of the app.
*/
export interface Schema$AppVersion {
/**
* True if this version is a production APK.
*/
isProduction?: boolean | null;
/**
* Deprecated, use trackId instead.
*/
track?: string | null;
/**
* Track ids that the app version is published in. Replaces the track field (deprecated), but doesn't include the production track (see isProduction instead).
*/
trackId?: string[] | null;
/**
* Unique increasing identifier for the app version.
*/
versionCode?: number | null;
/**
* 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").
*/
versionString?: string | null;
}
/**
* An AuthenticationToken is used by the EMM's device policy client on a device to provision the given EMM-managed user on that device.
*/
export interface Schema$AuthenticationToken {
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#authenticationToken".
*/
kind?: string | null;
/**
* The authentication token to be passed to the device policy client on the device where it can be used to provision the account for which this token was generated.
*/
token?: string | null;
}
/**
* The auto-install constraint. Defines a set of restrictions for installation. At least one of the fields must be set.
*/
export interface Schema$AutoInstallConstraint {
/**
* Charging state constraint.
*/
chargingStateConstraint?: string | null;
/**
* Device idle state constraint.
*/
deviceIdleStateConstraint?: string | null;
/**
* Network type constraint.
*/
networkTypeConstraint?: string | null;
}
export interface Schema$AutoInstallPolicy {
/**
* The constraints for auto-installing the app. You can specify a maximum of one constraint.
*/
autoInstallConstraint?: Schema$AutoInstallConstraint[];
/**
* The auto-install mode. If unset defaults to "doNotAutoInstall".
*/
autoInstallMode?: string | null;
/**
* The priority of the install, as an unsigned integer. A lower number means higher priority.
*/
autoInstallPriority?: number | null;
/**
* The minimum version of the app. If a lower version of the app is installed, then the app will be auto-updated according to the auto-install constraints, instead of waiting for the regular auto-update.
*/
minimumVersionCode?: number | null;
}
/**
* A configuration variables resource contains the managed configuration settings ID to be applied to a single user, as well as the variable set that is attributed to the user. The variable set will be used to replace placeholders in the managed configuration settings.
*/
export interface Schema$ConfigurationVariables {
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#configurationVariables".
*/
kind?: string | null;
/**
* The ID of the managed configurations settings.
*/
mcmId?: string | null;
/**
* The variable set that is attributed to the user.
*/
variableSet?: Schema$VariableSet[];
}
/**
* A Devices resource represents a mobile device managed by the EMM and belonging to a specific enterprise user.
*/
export interface Schema$Device {
/**
* The Google Play Services Android ID for the device encoded as a lowercase hex string. For example, "123456789abcdef0".
*/
androidId?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#device".
*/
kind?: string | null;
/**
* Identifies the extent to which the device is controlled by a managed Google Play EMM in various deployment configurations. Possible values include: - "managedDevice", a device that has the EMM's device policy controller (DPC) as the device owner. - "managedProfile", a device that has a profile managed by the DPC (DPC is profile owner) in addition to a separate, personal profile that is unavailable to the DPC. - "containerApp", no longer used (deprecated). - "unmanagedProfile", a device that has been allowed (by the domain's admin, using the Admin Console to enable the privilege) to use managed Google Play, but the profile is itself not owned by a DPC.
*/
managementType?: string | null;
/**
* The policy enforced on the device.
*/
policy?: Schema$Policy;
/**
* The device report updated with the latest app states.
*/
report?: Schema$DeviceReport;
}
/**
* Device report updated with the latest app states for managed apps on the device.
*/
export interface Schema$DeviceReport {
/**
* List of app states set by managed apps on the device. App states are defined by the app's developers. This field will always be present.
*/
appState?: Schema$AppState[];
/**
* The timestamp of the last report update in milliseconds since epoch. This field will always be present.
*/
lastUpdatedTimestampMillis?: string | null;
}
/**
* An event generated when an updated device report is available.
*/
export interface Schema$DeviceReportUpdateEvent {
/**
* The Android ID of the device. This field will always be present.
*/
deviceId?: string | null;
/**
* The device report updated with the latest app states. This field will always be present.
*/
report?: Schema$DeviceReport;
/**
* The ID of the user. This field will always be present.
*/
userId?: string | null;
}
/**
* The device resources for the user.
*/
export interface Schema$DevicesListResponse {
/**
* A managed device.
*/
device?: Schema$Device[];
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#devicesListResponse".
*/
kind?: string | null;
}
/**
* The state of a user's device, as accessed by the getState and setState methods on device resources.
*/
export interface Schema$DeviceState {
/**
* The state of the Google account on the device. "enabled" indicates that the Google account on the device can be used to access Google services (including Google Play), while "disabled" means that it cannot. A new device is initially in the "disabled" state.
*/
accountState?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#deviceState".
*/
kind?: string | null;
}
/**
* An Enterprises resource represents the binding between an EMM and a specific organization. That binding can be instantiated in one of two different ways using this API as follows: - For Google managed domain customers, the process involves using Enterprises.enroll and Enterprises.setAccount (in conjunction with artifacts obtained from the Admin console and the Google API Console) and submitted to the EMM through a more-or-less manual process. - For managed Google Play Accounts customers, the process involves using Enterprises.generateSignupUrl and Enterprises.completeSignup in conjunction with the managed Google Play sign-up UI (Google-provided mechanism) to create the binding without manual steps. As an EMM, you can support either or both approaches in your EMM console. See Create an Enterprise for details.
*/
export interface Schema$Enterprise {
/**
* Admins of the enterprise. This is only supported for enterprises created via the EMM-initiated flow.
*/
administrator?: Schema$Administrator[];
/**
* The unique ID for the enterprise.
*/
id?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#enterprise".
*/
kind?: string | null;
/**
* The name of the enterprise, for example, "Example, Inc".
*/
name?: string | null;
/**
* The enterprise's primary domain, such as "example.com".
*/
primaryDomain?: string | null;
}
/**
* A service account that can be used to authenticate as the enterprise to API calls that require such authentication.
*/
export interface Schema$EnterpriseAccount {
/**
* The email address of the service account.
*/
accountEmail?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#enterpriseAccount".
*/
kind?: string | null;
}
/**
* The matching enterprise resources.
*/
export interface Schema$EnterprisesListResponse {
/**
* An enterprise.
*/
enterprise?: Schema$Enterprise[];
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#enterprisesListResponse".
*/
kind?: string | null;
}
export interface Schema$EnterprisesSendTestPushNotificationResponse {
/**
* The message ID of the test push notification that was sent.
*/
messageId?: string | null;
/**
* The name of the Cloud Pub/Sub topic to which notifications for this enterprise's enrolled account will be sent.
*/
topicName?: string | null;
}
/**
* The presence of an Entitlements resource indicates that a user has the right to use a particular app. Entitlements are user specific, not device specific. This allows a user with an entitlement to an app to install the app on all their devices. It's also possible for a user to hold an entitlement to an app without installing the app on any device. The API can be used to create an entitlement. As an option, you can also use the API to trigger the installation of an app on all a user's managed devices at the same time the entitlement is created. If the app is free, creating the entitlement also creates a group license for that app. For paid apps, creating the entitlement consumes one license, and that license remains consumed until the entitlement is removed. If the enterprise hasn't purchased enough licenses, then no entitlement is created and the installation fails. An entitlement is also not created for an app if the app requires permissions that the enterprise hasn't accepted. If an entitlement is deleted, the app may be uninstalled from a user's device. As a best practice, uninstall the app by calling Installs.delete() before deleting the entitlement. Entitlements for apps that a user pays for on an unmanaged profile have "userPurchase" as the entitlement reason. These entitlements cannot be removed via the API.
*/
export interface Schema$Entitlement {
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#entitlement".
*/
kind?: string | null;
/**
* The ID of the product that the entitlement is for. For example, "app:com.google.android.gm".
*/
productId?: string | null;
/**
* The reason for the entitlement. For example, "free" for free apps. This property is temporary: it will be replaced by the acquisition kind field of group licenses.
*/
reason?: string | null;
}
/**
* The entitlement resources for the user.
*/
export interface Schema$EntitlementsListResponse {
/**
* An entitlement of a user to a product (e.g. an app). For example, a free app that they have installed, or a paid app that they have been allocated a license to.
*/
entitlement?: Schema$Entitlement[];
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#entitlementsListResponse".
*/
kind?: string | null;
}
/**
* Group license objects allow you to keep track of licenses (called entitlements) for both free and paid apps. For a free app, a group license is created when an enterprise admin first approves the product in Google Play or when the first entitlement for the product is created for a user via the API. For a paid app, a group license object is only created when an enterprise admin purchases the product in Google Play for the first time. Use the API to query group licenses. A Grouplicenses resource includes the total number of licenses purchased (paid apps only) and the total number of licenses currently in use. In other words, the total number of Entitlements that exist for the product. Only one group license object is created per product and group license objects are never deleted. If a product is unapproved, its group license remains. This allows enterprise admins to keep track of any remaining entitlements for the product.
*/
export interface Schema$GroupLicense {
/**
* How this group license was acquired. "bulkPurchase" means that this Grouplicenses resource was created because the enterprise purchased licenses for this product; otherwise, the value is "free" (for free products).
*/
acquisitionKind?: string | null;
/**
* Whether the product to which this group license relates is currently approved by the enterprise. Products are approved when a group license is first created, but this approval may be revoked by an enterprise admin via Google Play. Unapproved products will not be visible to end users in collections, and new entitlements to them should not normally be created.
*/
approval?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#groupLicense".
*/
kind?: string | null;
/**
* The total number of provisioned licenses for this product. Returned by read operations, but ignored in write operations.
*/
numProvisioned?: number | null;
/**
* The number of purchased licenses (possibly in multiple purchases). If this field is omitted, then there is no limit on the number of licenses that can be provisioned (for example, if the acquisition kind is "free").
*/
numPurchased?: number | null;
/**
* The permission approval status of the product. This field is only set if the product is approved. Possible states are: - "currentApproved", the current set of permissions is approved, but additional permissions will require the administrator to reapprove the product (If the product was approved without specifying the approved permissions setting, then this is the default behavior.), - "needsReapproval", the product has unapproved permissions. No additional product licenses can be assigned until the product is reapproved, - "allCurrentAndFutureApproved", the current permissions are approved and any future permission updates will be automatically approved without administrator review.
*/
permissions?: string | null;
/**
* The ID of the product that the license is for. For example, "app:com.google.android.gm".
*/
productId?: string | null;
}
/**
* The grouplicense resources for the enterprise.
*/
export interface Schema$GroupLicensesListResponse {
/**
* A group license for a product approved for use in the enterprise.
*/
groupLicense?: Schema$GroupLicense[];
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#groupLicensesListResponse".
*/
kind?: string | null;
}
/**
* The user resources for the group license.
*/
export interface Schema$GroupLicenseUsersListResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#groupLicenseUsersListResponse".
*/
kind?: string | null;
/**
* A user of an enterprise.
*/
user?: Schema$User[];
}
/**
* The existence of an Installs resource indicates that an app is installed on a particular device (or that an install is pending). The API can be used to create an install resource using the update method. This triggers the actual install of the app on the device. If the user does not already have an entitlement for the app, then an attempt is made to create one. If this fails (for example, because the app is not free and there is no available license), then the creation of the install fails. The API can also be used to update an installed app. If the update method is used on an existing install, then the app will be updated to the latest available version. Note that it is not possible to force the installation of a specific version of an app: the version code is read-only. If a user installs an app themselves (as permitted by the enterprise), then again an install resource and possibly an entitlement resource are automatically created. The API can also be used to delete an install resource, which triggers the removal of the app from the device. Note that deleting an install does not automatically remove the corresponding entitlement, even if there are no remaining installs. The install resource will also be deleted if the user uninstalls the app themselves.
*/
export interface Schema$Install {
/**
* Install state. The state "installPending" means that an install request has recently been made and download to the device is in progress. The state "installed" means that the app has been installed. This field is read-only.
*/
installState?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#install".
*/
kind?: string | null;
/**
* The ID of the product that the install is for. For example, "app:com.google.android.gm".
*/
productId?: string | null;
/**
* The version of the installed product. Guaranteed to be set only if the install state is "installed".
*/
versionCode?: number | null;
}
/**
* An event generated when an app installation failed on a device
*/
export interface Schema$InstallFailureEvent {
/**
* The Android ID of the device. This field will always be present.
*/
deviceId?: string | null;
/**
* Additional details on the failure if applicable.
*/
failureDetails?: string | null;
/**
* The reason for the installation failure. This field will always be present.
*/
failureReason?: string | null;
/**
* The id of the product (e.g. "app:com.google.android.gm") for which the install failure event occured. This field will always be present.
*/
productId?: string | null;
/**
* The ID of the user. This field will always be present.
*/
userId?: string | null;
}
/**
* The install resources for the device.
*/
export interface Schema$InstallsListResponse {
/**
* An installation of an app for a user on a specific device. The existence of an install implies that the user must have an entitlement to the app.
*/
install?: Schema$Install[];
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#installsListResponse".
*/
kind?: string | null;
}
/**
* Represents a keyed app state containing a key, timestamp, severity level, optional description, and optional data.
*/
export interface Schema$KeyedAppState {
/**
* Additional field intended for machine-readable data. For example, a number or JSON object. To prevent XSS, we recommend removing any HTML from the data before displaying it.
*/
data?: string | null;
/**
* Key indicating what the app is providing a state for. The content of the key is set by the app's developer. To prevent XSS, we recommend removing any HTML from the key before displaying it. This field will always be present.
*/
key?: string | null;
/**
* Free-form, human-readable message describing the app state. For example, an error message. To prevent XSS, we recommend removing any HTML from the message before displaying it.
*/
message?: string | null;
/**
* Severity of the app state. This field will always be present.
*/
severity?: string | null;
/**
* Timestamp of when the app set the state in milliseconds since epoch. This field will always be present.
*/
stateTimestampMillis?: string | null;
}
/**
* A localized string with its locale.
*/
export interface Schema$LocalizedText {
/**
* The BCP47 tag for a locale. (e.g. "en-US", "de").
*/
locale?: string | null;
/**
* The text localized in the associated locale.
*/
text?: string | null;
}
/**
* Maintenance window for managed Google Play Accounts. This allows Play store to update the apps on the foreground in the designated window.
*/
export interface Schema$MaintenanceWindow {
/**
* Duration of the maintenance window, in milliseconds. The duration must be between 30 minutes and 24 hours (inclusive).
*/
durationMs?: string | null;
/**
* Start time of the maintenance window, in milliseconds after midnight on the device. Windows can span midnight.
*/
startTimeAfterMidnightMs?: string | null;
}
/**
* A managed configuration resource contains the set of managed properties defined by the app developer in the app's managed configurations schema, as well as any configuration variables defined for the user.
*/
export interface Schema$ManagedConfiguration {
/**
* Contains the ID of the managed configuration profile and the set of configuration variables (if any) defined for the user.
*/
configurationVariables?: Schema$ConfigurationVariables;
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#managedConfiguration".
*/
kind?: string | null;
/**
* The set of managed properties for this configuration.
*/
managedProperty?: Schema$ManagedProperty[];
/**
* The ID of the product that the managed configuration is for, e.g. "app:com.google.android.gm".
*/
productId?: string | null;
}
/**
* The managed configuration resources for the device.
*/
export interface Schema$ManagedConfigurationsForDeviceListResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#managedConfigurationsForDeviceListResponse".
*/
kind?: string | null;
/**
* A managed configuration for an app on a specific device.
*/
managedConfigurationForDevice?: Schema$ManagedConfiguration[];
}
/**
* The managed configuration resources for the user.
*/
export interface Schema$ManagedConfigurationsForUserListResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#managedConfigurationsForUserListResponse".
*/
kind?: string | null;
/**
* A managed configuration for an app for a specific user.
*/
managedConfigurationForUser?: Schema$ManagedConfiguration[];
}
/**
* A managed configurations settings resource contains the set of managed properties that have been configured for an Android app to be applied to a set of users. The app's developer would have defined configurable properties in the managed configurations schema.
*/
export interface Schema$ManagedConfigurationsSettings {
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#managedConfigurationsSettings".
*/
kind?: string | null;
/**
* The last updated time of the managed configuration settings in milliseconds since 1970-01-01T00:00:00Z.
*/
lastUpdatedTimestampMillis?: string | null;
/**
* The ID of the managed configurations settings.
*/
mcmId?: string | null;
/**
* The name of the managed configurations settings.
*/
name?: string | null;
}
/**
* The managed configurations settings for a product.
*/
export interface Schema$ManagedConfigurationsSettingsListResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#managedConfigurationsSettingsListResponse".
*/
kind?: string | null;
/**
* A managed configurations settings for an app that may be assigned to a group of users in an enterprise.
*/
managedConfigurationsSettings?: Schema$ManagedConfigurationsSettings[];
}
/**
* A managed property of a managed configuration. The property must match one of the properties in the app restrictions schema of the product. Exactly one of the value fields must be populated, and it must match the property's type in the app restrictions schema.
*/
export interface Schema$ManagedProperty {
/**
* The unique key that identifies the property.
*/
key?: string | null;
/**
* The boolean value - this will only be present if type of the property is bool.
*/
valueBool?: boolean | null;
/**
* The bundle of managed properties - this will only be present if type of the property is bundle.
*/
valueBundle?: Schema$ManagedPropertyBundle;
/**
* The list of bundles of properties - this will only be present if type of the property is bundle_array.
*/
valueBundleArray?: Schema$ManagedPropertyBundle[];
/**
* The integer value - this will only be present if type of the property is integer.
*/
valueInteger?: number | null;
/**
* The string value - this will only be present if type of the property is string, choice or hidden.
*/
valueString?: string | null;
/**
* The list of string values - this will only be present if type of the property is multiselect.
*/
valueStringArray?: string[] | null;
}
/**
* A bundle of managed properties.
*/
export interface Schema$ManagedPropertyBundle {
/**
* The list of managed properties.
*/
managedProperty?: Schema$ManagedProperty[];
}
/**
* An event generated when a new device is ready to be managed.
*/
export interface Schema$NewDeviceEvent {
/**
* The Android ID of the device. This field will always be present.
*/
deviceId?: string | null;
/**
* Policy app on the device.
*/
dpcPackageName?: string | null;
/**
* Identifies the extent to which the device is controlled by an Android EMM in various deployment configurations. Possible values include: - "managedDevice", a device where the DPC is set as device owner, - "managedProfile", a device where the DPC is set as profile owner.
*/
managementType?: string | null;
/**
* The ID of the user. This field will always be present.
*/
userId?: string | null;
}
/**
* An event generated when new permissions are added to an app.
*/
export interface Schema$NewPermissionsEvent {
/**
* The set of permissions that the enterprise admin has already approved for this application. Use Permissions.Get on the EMM API to retrieve details about these permissions.
*/
approvedPermissions?: string[] | null;
/**
* The id of the product (e.g. "app:com.google.android.gm") for which new permissions were added. This field will always be present.
*/
productId?: string | null;
/**
* The set of permissions that the app is currently requesting. Use Permissions.Get on the EMM API to retrieve details about these permissions.
*/
requestedPermissions?: string[] | null;
}
/**
* A notification of one event relating to an enterprise.
*/
export interface Schema$Notification {
/**
* Notifications about new app restrictions schema changes.
*/
appRestrictionsSchemaChangeEvent?: Schema$AppRestrictionsSchemaChangeEvent;
/**
* Notifications about app updates.
*/
appUpdateEvent?: Schema$AppUpdateEvent;
/**
* Notifications about device report updates.
*/
deviceReportUpdateEvent?: Schema$DeviceReportUpdateEvent;
/**
* The ID of the enterprise for which the notification is sent. This will always be present.
*/
enterpriseId?: string | null;
/**
* Notifications about an app installation failure.
*/
installFailureEvent?: Schema$InstallFailureEvent;
/**
* Notifications about new devices.
*/
newDeviceEvent?: Schema$NewDeviceEvent;
/**
* Notifications about new app permissions.
*/
newPermissionsEvent?: Schema$NewPermissionsEvent;
/**
* Type of the notification.
*/
notificationType?: string | null;
/**
* Notifications about changes to a product's approval status.
*/
productApprovalEvent?: Schema$ProductApprovalEvent;
/**
* Notifications about product availability changes.
*/
productAvailabilityChangeEvent?: Schema$ProductAvailabilityChangeEvent;
/**
* The time when the notification was published in milliseconds since 1970-01-01T00:00:00Z. This will always be present.
*/
timestampMillis?: string | null;
}
/**
* A resource returned by the PullNotificationSet API, which contains a collection of notifications for enterprises associated with the service account authenticated for the request.
*/
export interface Schema$NotificationSet {
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#notificationSet".
*/
kind?: string | null;
/**
* The notifications received, or empty if no notifications are present.
*/
notification?: Schema$Notification[];
/**
* The notification set ID, required to mark the notification as received with the Enterprises.AcknowledgeNotification API. This will be omitted if no notifications are present.
*/
notificationSetId?: string | null;
}
export interface Schema$PageInfo {
resultPerPage?: number | null;
startIndex?: number | null;
totalResults?: number | null;
}
/**
* A Permissions resource represents some extra capability, to be granted to an Android app, which requires explicit consent. An enterprise admin must consent to these permissions on behalf of their users before an entitlement for the app can be created. The permissions collection is read-only. The information provided for each permission (localized name and description) is intended to be used in the MDM user interface when obtaining consent from the enterprise.
*/
export interface Schema$Permission {
/**
* A longer description of the Permissions resource, giving more details of what it affects.
*/
description?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#permission".
*/
kind?: string | null;
/**
* The name of the permission.
*/
name?: string | null;
/**
* An opaque string uniquely identifying the permission.
*/
permissionId?: string | null;
}
/**
* The device policy for a given managed device.
*/
export interface Schema$Policy {
/**
* The auto-update policy for apps installed on the device. "choiceToTheUser" allows the device's user to configure the app update policy. "always" enables auto updates. "never" disables auto updates. "wifiOnly" enables auto updates only when the device is connected to wifi.
*/
autoUpdatePolicy?: string | null;
/**
* Whether the device reports app states to the EMM. The default value is "deviceReportDisabled".
*/
deviceReportPolicy?: string | null;
/**
* The maintenance window defining when apps running in the foreground should be updated.
*/
maintenanceWindow?: Schema$MaintenanceWindow;
/**
* The availability granted to the device for the specified products. "all" gives the device access to all products, regardless of approval status. "all" does not enable automatic visibility of "alpha" or "beta" tracks. "whitelist" grants the device access the products specified in productPolicy[]. Only products that are approved or products that were previously approved (products with revoked approval) by the enterprise can be whitelisted. If no value is provided, the availability set at the user level is applied by default.
*/
productAvailabilityPolicy?: string | null;
/**
* The list of product policies.
*/
productPolicy?: Schema$ProductPolicy[];
}
/**
* A Products resource represents an app in the Google Play store that is available to at least some users in the enterprise. (Some apps are restricted to a single enterprise, and no information about them is made available outside that enterprise.) The information provided for each product (localized name, icon, link to the full Google Play details page) is intended to allow a basic representation of the product within an EMM user interface.
*/
export interface Schema$Product {
/**
* The tracks visible to the enterprise.
*/
appTracks?: Schema$TrackInfo[];
/**
* App versions currently available for this product.
*/
appVersion?: Schema$AppVersion[];
/**
* The name of the author of the product (for example, the app developer).
*/
authorName?: string | null;
/**
* The countries which this app is available in.
*/
availableCountries?: string[] | null;
/**
* Deprecated, use appTracks instead.
*/
availableTracks?: string[] | null;
/**
* The app category (e.g. RACING, SOCIAL, etc.)
*/
category?: string | null;
/**
* The content rating for this app.
*/
contentRating?: string | null;
/**
* The localized promotional description, if available.
*/
description?: string | null;
/**
* A link to the (consumer) Google Play details page for the product.
*/
detailsUrl?: string | null;
/**
* How and to whom the package is made available. The value publicGoogleHosted means that the package is available through the Play store and not restricted to a specific enterprise. The value privateGoogleHosted means that the package is a private app (restricted to an enterprise) but hosted by Google. The value privateSelfHosted means that the package is a private app (restricted to an enterprise) and is privately hosted.
*/
distributionChannel?: string | null;
/**
* A link to an image that can be used as an icon for the product. This image is suitable for use at up to 512px x 512px.
*/
iconUrl?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#product".
*/
kind?: string | null;
/**
* The approximate time (within 7 days) the app was last published, expressed in milliseconds since epoch.
*/
lastUpdatedTimestampMillis?: string | null;
/**
* The minimum Android SDK necessary to run the app.
*/
minAndroidSdkVersion?: number | null;
/**
* A list of permissions required by the app.
*/
permissions?: Schema$ProductPermission[];
/**
* A string of the form app:<package name>. For example, app:com.google.android.gm represents the Gmail app.
*/
productId?: string | null;
/**
* Whether this product is free, free with in-app purchases, or paid. If the pricing is unknown, this means the product is not generally available anymore (even though it might still be available to people who own it).
*/
productPricing?: string | null;
/**
* A description of the recent changes made to the app.
*/
recentChanges?: string | null;
/**
* Deprecated.
*/
requiresContainerApp?: boolean | null;
/**
* A list of screenshot links representing the app.
*/
screenshotUrls?: string[] | null;
/**
* The certificate used to sign this product.
*/
signingCertificate?: Schema$ProductSigningCertificate;
/**
* A link to a smaller image that can be used as an icon for the product. This image is suitable for use at up to 128px x 128px.
*/
smallIconUrl?: string | null;
/**
* The name of the product.
*/
title?: string | null;
/**
* A link to the managed Google Play details page for the product, for use by an Enterprise admin.
*/
workDetailsUrl?: string | null;
}
/**
* An event generated when a product's approval status is changed.
*/
export interface Schema$ProductApprovalEvent {
/**
* Whether the product was approved or unapproved. This field will always be present.
*/
approved?: string | null;
/**
* The id of the product (e.g. "app:com.google.android.gm") for which the approval status has changed. This field will always be present.
*/
productId?: string | null;
}
/**
* An event generated whenever a product's availability changes.
*/
export interface Schema$ProductAvailabilityChangeEvent {
/**
* The new state of the product. This field will always be present.
*/
availabilityStatus?: string | null;
/**
* The id of the product (e.g. "app:com.google.android.gm") for which the product availability changed. This field will always be present.
*/
productId?: string | null;
}
/**
* A product permissions resource represents the set of permissions required by a specific app and whether or not they have been accepted by an enterprise admin. The API can be used to read the set of permissions, and also to update the set to indicate that permissions have been accepted.
*/
export interface Schema$ProductPermission {
/**
* An opaque string uniquely identifying the permission.
*/
permissionId?: string | null;
/**
* Whether the permission has been accepted or not.
*/
state?: string | null;
}
/**
* Information about the permissions required by a specific app and whether they have been accepted by the enterprise.
*/
export interface Schema$ProductPermissions {
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#productPermissions".
*/
kind?: string | null;
/**
* The permissions required by the app.
*/
permission?: Schema$ProductPermission[];
/**
* The ID of the app that the permissions relate to, e.g. "app:com.google.android.gm".
*/
productId?: string | null;
}
/**
* The policy for a product.
*/
export interface Schema$ProductPolicy {
/**
* The auto-install policy for the product.
*/
autoInstallPolicy?: Schema$AutoInstallPolicy;
/**
* The managed configuration for the product.
*/
managedConfiguration?: Schema$ManagedConfiguration;
/**
* The ID of the product. For example, "app:com.google.android.gm".
*/
productId?: string | null;
/**
* Grants the device visibility to the specified product release track(s), identified by trackIds. The list of release tracks of a product can be obtained by calling Products.Get.
*/
trackIds?: string[] | null;
/**
* Deprecated. Use trackIds instead.
*/
tracks?: string[] | null;
}
export interface Schema$ProductsApproveRequest {
/**
* The approval URL that was shown to the user. Only the permissions shown to the user with that URL will be accepted, which may not be the product's entire set of permissions. For example, the URL may only display new permissions from an update after the product was approved, or not include new permissions if the product was updated since the URL was generated.
*/
approvalUrlInfo?: Schema$ApprovalUrlInfo;
/**
* Sets how new permission requests for the product are handled. "allPermissions" automatically approves all current and future permissions for the product. "currentPermissionsOnly" approves the current set of permissions for the product, but any future permissions added through updates will require manual reapproval. If not specified, only the current set of permissions will be approved.
*/
approvedPermissions?: string | null;
}
/**
* A set of products.
*/
export interface Schema$ProductSet {
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#productSet".
*/
kind?: string | null;
/**
* The list of product IDs making up the set of products.
*/
productId?: string[] | null;
/**
* The interpretation of this product set. "unknown" should never be sent and is ignored if received. "whitelist" means that the user is entitled to access the product set. "includeAll" means that all products are accessible, including products that are approved, products with revoked approval, and products that have never been approved. "allApproved" means that the user is entitled to access all products that are approved for the enterprise. If the value is "allApproved" or "includeAll", the productId field is ignored. If no value is provided, it is interpreted as "whitelist" for backwards compatibility. Further "allApproved" or "includeAll" does not enable automatic visibility of "alpha" or "beta" tracks for Android app. Use ProductVisibility to enable "alpha" or "beta" tracks per user.
*/
productSetBehavior?: string | null;
/**
* Additional list of product IDs making up the product set. Unlike the productID array, in this list It's possible to specify which tracks (alpha, beta, production) of a product are visible to the user. See ProductVisibility and its fields for more information. Specifying the same product ID both here and in the productId array is not allowed and it will result in an error.
*/
productVisibility?: Schema$ProductVisibility[];
}
export interface Schema$ProductsGenerateApprovalUrlResponse {
/**
* A URL that can be rendered in an iframe to display the permissions (if any) of a product. This URL can be used to approve the product only once and only within 24 hours of being generated, using the Products.approve call. If the product is currently unapproved and has no permissions, this URL will point to an empty page. If the product is currently approved, a URL will only be generated if that product has added permissions since it was last approved, and the URL will only display those new permissions that have not yet been accepted.
*/
url?: string | null;
}
export interface Schema$ProductSigningCertificate {
/**
* The base64 urlsafe encoded SHA1 hash of the certificate. (This field is deprecated in favor of SHA2-256. It should not be used and may be removed at any time.)
*/
certificateHashSha1?: string | null;
/**
* The base64 urlsafe encoded SHA2-256 hash of the certificate.
*/
certificateHashSha256?: string | null;
}
/**
* The matching products.
*/
export interface Schema$ProductsListResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#productsListResponse".
*/
kind?: string | null;
/**
* General pagination information.
*/
pageInfo?: Schema$PageInfo;
/**
* Information about a product (e.g. an app) in the Google Play store, for display to an enterprise admin.
*/
product?: Schema$Product[];
/**
* Pagination information for token pagination.
*/
tokenPagination?: Schema$TokenPagination;
}
/**
* A product to be made visible to a user.
*/
export interface Schema$ProductVisibility {
/**
* The product ID to make visible to the user. Required for each item in the productVisibility list.
*/
productId?: string | null;
/**
* Grants the user visibility to the specified product track(s), identified by trackIds.
*/
trackIds?: string[] | null;
/**
* Deprecated. Use trackIds instead.
*/
tracks?: string[] | null;
}
/**
* A service account identity, including the name and credentials that can be used to authenticate as the service account.
*/
export interface Schema$ServiceAccount {
/**
* Credentials that can be used to authenticate as this ServiceAccount.
*/
key?: Schema$ServiceAccountKey;
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#serviceAccount".
*/
kind?: string | null;
/**
* The account name of the service account, in the form of an email address. Assigned by the server.
*/
name?: string | null;
}
/**
* Credentials that can be used to authenticate as a service account.
*/
export interface Schema$ServiceAccountKey {
/**
* The body of the private key credentials file, in string format. This is only populated when the ServiceAccountKey is created, and is not stored by Google.
*/
data?: string | null;
/**
* An opaque, unique identifier for this ServiceAccountKey. Assigned by the server.
*/
id?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#serviceAccountKey".
*/
kind?: string | null;
/**
* Public key data for the credentials file. This is an X.509 cert. If you are using the googleCredentials key type, this is identical to the cert that can be retrieved by using the X.509 cert url inside of the credentials file.
*/
publicData?: string | null;
/**
* The file format of the generated key data.
*/
type?: string | null;
}
export interface Schema$ServiceAccountKeysListResponse {
/**
* The service account credentials.
*/
serviceAccountKey?: Schema$ServiceAccountKey[];
}
/**
* A resource returned by the GenerateSignupUrl API, which contains the Signup URL and Completion Token.
*/
export interface Schema$SignupInfo {
/**
* An opaque token that will be required, along with the Enterprise Token, for obtaining the enterprise resource from CompleteSignup.
*/
completionToken?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#signupInfo".
*/
kind?: string | null;
/**
* A URL under which the Admin can sign up for an enterprise. The page pointed to cannot be rendered in an iframe.
*/
url?: string | null;
}
/**
* Definition of a managed Google Play store cluster, a list of products displayed as part of a store page.
*/
export interface Schema$StoreCluster {
/**
* Unique ID of this cluster. Assigned by the server. Immutable once assigned.
*/
id?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#storeCluster".
*/
kind?: string | null;
/**
* Ordered list of localized strings giving the name of this page. The text displayed is the one that best matches the user locale, or the first entry if there is no good match. There needs to be at least one entry.
*/
name?: Schema$LocalizedText[];
/**
* String (US-ASCII only) used to determine order of this cluster within the parent page's elements. Page elements are sorted in lexicographic order of this field. Duplicated values are allowed, but ordering between elements with duplicate order is undefined. The value of this field is never visible to a user, it is used solely for the purpose of defining an ordering. Maximum length is 256 characters.
*/
orderInPage?: string | null;
/**
* List of products in the order they are displayed in the cluster. There should not be duplicates within a cluster.
*/
productId?: string[] | null;
}
/**
* General setting for the managed Google Play store layout, currently only specifying the page to display the first time the store is opened.
*/
export interface Schema$StoreLayout {
/**
* The ID of the store page to be used as the homepage. The homepage is the first page shown in the managed Google Play Store. Not specifying a homepage is equivalent to setting the store layout type to "basic".
*/
homepageId?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#storeLayout".
*/
kind?: string | null;
/**
* The store layout type. By default, this value is set to "basic" if the homepageId field is not set, and to "custom" otherwise. If set to "basic", the layout will consist of all approved apps that have been whitelisted for the user.
*/
storeLayoutType?: string | null;
}
/**
* The store page resources for the enterprise.
*/
export interface Schema$StoreLayoutClustersListResponse {
/**
* A store cluster of an enterprise.
*/
cluster?: Schema$StoreCluster[];
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#storeLayoutClustersListResponse".
*/
kind?: string | null;
}
/**
* The store page resources for the enterprise.
*/
export interface Schema$StoreLayoutPagesListResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#storeLayoutPagesListResponse".
*/
kind?: string | null;
/**
* A store page of an enterprise.
*/
page?: Schema$StorePage[];
}
/**
* Definition of a managed Google Play store page, made of a localized name and links to other pages. A page also contains clusters defined as a subcollection.
*/
export interface Schema$StorePage {
/**
* Unique ID of this page. Assigned by the server. Immutable once assigned.
*/
id?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#storePage".
*/
kind?: string | null;
/**
* Ordered list of pages a user should be able to reach from this page. The list can't include this page. It is recommended that the basic pages are created first, before adding the links between pages. The API doesn't verify that the pages exist or the pages are reachable.
*/
link?: string[] | null;
/**
* Ordered list of localized strings giving the name of this page. The text displayed is the one that best matches the user locale, or the first entry if there is no good match. There needs to be at least one entry.
*/
name?: Schema$LocalizedText[];
}
export interface Schema$TokenPagination {
nextPageToken?: string | null;
previousPageToken?: string | null;
}
/**
* Id to name association of a track.
*/
export interface Schema$TrackInfo {
/**
* A modifiable name for a track. This is the visible name in the play developer console.
*/
trackAlias?: string | null;
/**
* Unmodifiable, unique track identifier. This identifier is the releaseTrackId in the url of the play developer console page that displays the track information.
*/
trackId?: string | null;
}
/**
* A Users resource represents an account associated with an enterprise. The account may be specific to a device or to an individual user (who can then use the account across multiple devices). The account may provide access to managed Google Play only, or to other Google services, depending on the identity model: - The Google managed domain identity model requires synchronization to Google account sources (via primaryEmail). - The managed Google Play Accounts identity model provides a dynamic means for enterprises to create user or device accounts as needed. These accounts provide access to managed Google Play.
*/
export interface Schema$User {
/**
* A unique identifier you create for this user, such as "user342" or "asset#44418". Do not use personally identifiable information (PII) for this property. Must always be set for EMM-managed users. Not set for Google-managed users.
*/
accountIdentifier?: string | null;
/**
* The type of account that this user represents. A userAccount can be installed on multiple devices, but a deviceAccount is specific to a single device. An EMM-managed user (emmManaged) can be either type (userAccount, deviceAccount), but a Google-managed user (googleManaged) is always a userAccount.
*/
accountType?: string | null;
/**
* The name that will appear in user interfaces. Setting this property is optional when creating EMM-managed users. If you do set this property, use something generic about the organization (such as "Example, Inc.") or your name (as EMM). Not used for Google-managed user accounts.
*/
displayName?: string | null;
/**
* The unique ID for the user.
*/
id?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#user".
*/
kind?: string | null;
/**
* The entity that manages the user. With googleManaged users, the source of truth is Google so EMMs have to make sure a Google Account exists for the user. With emmManaged users, the EMM is in charge.
*/
managementType?: string | null;
/**
* The user's primary email address, for example, "jsmith@example.com". Will always be set for Google managed users and not set for EMM managed users.
*/
primaryEmail?: string | null;
}
/**
* The matching user resources.
*/
export interface Schema$UsersListResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#usersListResponse".
*/
kind?: string | null;
/**
* A user of an enterprise.
*/
user?: Schema$User[];
}
/**
* A UserToken is used by a user when setting up a managed device or profile with their managed Google Play account on a device. When the user enters their email address and token (activation code) the appropriate EMM app can be automatically downloaded.
*/
export interface Schema$UserToken {
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#userToken".
*/
kind?: string | null;
/**
* The token (activation code) to be entered by the user. This consists of a sequence of decimal digits. Note that the leading digit may be 0.
*/
token?: string | null;
/**
* The unique ID for the user.
*/
userId?: string | null;
}
/**
* A variable set is a key-value pair of EMM-provided placeholders and its corresponding value, which is attributed to a user. For example, $FIRSTNAME could be a placeholder, and its value could be Alice. Placeholders should start with a '$' sign and should be alphanumeric only.
*/
export interface Schema$VariableSet {
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#variableSet".
*/
kind?: string | null;
/**
* The placeholder string; defined by EMM.
*/
placeholder?: string | null;
/**
* The value of the placeholder, specific to the user.
*/
userValue?: string | null;
}
/**
* A WebApps resource represents a web app created for an enterprise. Web apps are published to managed Google Play and can be distributed like other Android apps. On a user's device, a web app opens its specified URL.
*/
export interface Schema$WebApp {
/**
* The display mode of the web app. Possible values include: - "minimalUi", the device's status bar, navigation bar, the app's URL, and a refresh button are visible when the app is open. For HTTP URLs, you can only select this option. - "standalone", the device's status bar and navigation bar are visible when the app is open. - "fullScreen", the app opens in full screen mode, hiding the device's status and navigation bars. All browser UI elements, page URL, system status bar and back button are not visible, and the web app takes up the entirety of the available display area.
*/
displayMode?: string | null;
/**
* A list of icons representing this website. If absent, a default icon (for create) or the current icon (for update) will be used.
*/
icons?: Schema$WebAppIcon[];
/**
* A flag whether the app has been published to the Play store yet.
*/
isPublished?: boolean | null;
/**
* The start URL, i.e. the URL that should load when the user opens the application.
*/
startUrl?: string | null;
/**
* 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).
*/
title?: string | null;
/**
* 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 up-to-date.
*/
versionCode?: string | null;
/**
* The ID of the application. A string of the form "app:<package name>" where the package name always starts with the prefix "com.google.enterprise.webapp." followed by a random id.
*/
webAppId?: string | null;
}
/**
* Icon for a web app.
*/
export interface Schema$WebAppIcon {
/**
* 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. - The image should ideally be square. - The image should ideally have a size of 512x512.
*/
imageData?: string | null;
}
/**
* The web app details for an enterprise.
*/
export interface Schema$WebAppsListResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#webAppsListResponse".
*/
kind?: string | null;
/**
* The manifest describing a web app.
*/
webApp?: Schema$WebApp[];
}
export class Resource$Devices {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* androidenterprise.devices.forceReportUpload
* @desc Uploads a report containing any changes in app states on the device since the last report was generated. You can call this method up to 3 times every 24 hours for a given device.
* @alias androidenterprise.devices.forceReportUpload
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.deviceId The ID of the device.
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.userId The ID of the user.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
forceReportUpload(params?: Params$Resource$Devices$Forcereportupload, options?: MethodOptions): GaxiosPromise<void>;
forceReportUpload(params: Params$Resource$Devices$Forcereportupload, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
forceReportUpload(params: Params$Resource$Devices$Forcereportupload, callback: BodyResponseCallback<void>): void;
forceReportUpload(callback: BodyResponseCallback<void>): void;
/**
* androidenterprise.devices.get
* @desc Retrieves the details of a device.
* @alias androidenterprise.devices.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.deviceId The ID of the device.
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.userId The ID of the user.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Devices$Get, options?: MethodOptions): GaxiosPromise<Schema$Device>;
get(params: Params$Resource$Devices$Get, options: MethodOptions | BodyResponseCallback<Schema$Device>, callback: BodyResponseCallback<Schema$Device>): void;
get(params: Params$Resource$Devices$Get, callback: BodyResponseCallback<Schema$Device>): void;
get(callback: BodyResponseCallback<Schema$Device>): void;
/**
* androidenterprise.devices.getState
* @desc Retrieves whether a device's access to Google services is enabled or disabled. The device state takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin Console. Otherwise, the device state is ignored and all devices are allowed access to Google services. This is only supported for Google-managed users.
* @alias androidenterprise.devices.getState
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.deviceId The ID of the device.
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.userId The ID of the user.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
getState(params?: Params$Resource$Devices$Getstate, options?: MethodOptions): GaxiosPromise<Schema$DeviceState>;
getState(params: Params$Resource$Devices$Getstate, options: MethodOptions | BodyResponseCallback<Schema$DeviceState>, callback: BodyResponseCallback<Schema$DeviceState>): void;
getState(params: Params$Resource$Devices$Getstate, callback: BodyResponseCallback<Schema$DeviceState>): void;
getState(callback: BodyResponseCallback<Schema$DeviceState>): void;
/**
* androidenterprise.devices.list
* @desc Retrieves the IDs of all of a user's devices.
* @alias androidenterprise.devices.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.userId The ID of the user.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Devices$List, options?: MethodOptions): GaxiosPromise<Schema$DevicesListResponse>;
list(params: Params$Resource$Devices$List, options: MethodOptions | BodyResponseCallback<Schema$DevicesListResponse>, callback: BodyResponseCallback<Schema$DevicesListResponse>): void;
list(params: Params$Resource$Devices$List, callback: BodyResponseCallback<Schema$DevicesListResponse>): void;
list(callback: BodyResponseCallback<Schema$DevicesListResponse>): void;
/**
* androidenterprise.devices.patch
* @desc Updates the device policy. This method supports patch semantics.
* @alias androidenterprise.devices.patch
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.deviceId The ID of the device.
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string=} params.updateMask Mask that identifies which fields to update. If not set, all modifiable fields will be modified. When set in a query parameter, this field should be specified as updateMask=<field1>,<field2>,...
* @param {string} params.userId The ID of the user.
* @param {().Device} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
patch(params?: Params$Resource$Devices$Patch, options?: MethodOptions): GaxiosPromise<Schema$Device>;
patch(params: Params$Resource$Devices$Patch, options: MethodOptions | BodyResponseCallback<Schema$Device>, callback: BodyResponseCallback<Schema$Device>): void;
patch(params: Params$Resource$Devices$Patch, callback: BodyResponseCallback<Schema$Device>): void;
patch(callback: BodyResponseCallback<Schema$Device>): void;
/**
* androidenterprise.devices.setState
* @desc Sets whether a device's access to Google services is enabled or disabled. The device state takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin Console. Otherwise, the device state is ignored and all devices are allowed access to Google services. This is only supported for Google-managed users.
* @alias androidenterprise.devices.setState
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.deviceId The ID of the device.
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.userId The ID of the user.
* @param {().DeviceState} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
setState(params?: Params$Resource$Devices$Setstate, options?: MethodOptions): GaxiosPromise<Schema$DeviceState>;
setState(params: Params$Resource$Devices$Setstate, options: MethodOptions | BodyResponseCallback<Schema$DeviceState>, callback: BodyResponseCallback<Schema$DeviceState>): void;
setState(params: Params$Resource$Devices$Setstate, callback: BodyResponseCallback<Schema$DeviceState>): void;
setState(callback: BodyResponseCallback<Schema$DeviceState>): void;
/**
* androidenterprise.devices.update
* @desc Updates the device policy
* @alias androidenterprise.devices.update
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.deviceId The ID of the device.
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string=} params.updateMask Mask that identifies which fields to update. If not set, all modifiable fields will be modified. When set in a query parameter, this field should be specified as updateMask=<field1>,<field2>,...
* @param {string} params.userId The ID of the user.
* @param {().Device} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
update(params?: Params$Resource$Devices$Update, options?: MethodOptions): GaxiosPromise<Schema$Device>;
update(params: Params$Resource$Devices$Update, options: MethodOptions | BodyResponseCallback<Schema$Device>, callback: BodyResponseCallback<Schema$Device>): void;
update(params: Params$Resource$Devices$Update, callback: BodyResponseCallback<Schema$Device>): void;
update(callback: BodyResponseCallback<Schema$Device>): void;
}
export interface Params$Resource$Devices$Forcereportupload extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the device.
*/
deviceId?: string;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the user.
*/
userId?: string;
}
export interface Params$Resource$Devices$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the device.
*/
deviceId?: string;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the user.
*/
userId?: string;
}
export interface Params$Resource$Devices$Getstate extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the device.
*/
deviceId?: string;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the user.
*/
userId?: string;
}
export interface Params$Resource$Devices$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the user.
*/
userId?: string;
}
export interface Params$Resource$Devices$Patch extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the device.
*/
deviceId?: string;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* Mask that identifies which fields to update. If not set, all modifiable fields will be modified. When set in a query parameter, this field should be specified as updateMask=<field1>,<field2>,...
*/
updateMask?: string;
/**
* The ID of the user.
*/
userId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$Device;
}
export interface Params$Resource$Devices$Setstate extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the device.
*/
deviceId?: string;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the user.
*/
userId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$DeviceState;
}
export interface Params$Resource$Devices$Update extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the device.
*/
deviceId?: string;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* Mask that identifies which fields to update. If not set, all modifiable fields will be modified. When set in a query parameter, this field should be specified as updateMask=<field1>,<field2>,...
*/
updateMask?: string;
/**
* The ID of the user.
*/
userId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$Device;
}
export class Resource$Enterprises {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* androidenterprise.enterprises.acknowledgeNotificationSet
* @desc Acknowledges notifications that were received from Enterprises.PullNotificationSet to prevent subsequent calls from returning the same notifications.
* @alias androidenterprise.enterprises.acknowledgeNotificationSet
* @memberOf! ()
*
* @param {object=} params Parameters for request
* @param {string=} params.notificationSetId The notification set ID as returned by Enterprises.PullNotificationSet. This must be provided.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
acknowledgeNotificationSet(params?: Params$Resource$Enterprises$Acknowledgenotificationset, options?: MethodOptions): GaxiosPromise<void>;
acknowledgeNotificationSet(params: Params$Resource$Enterprises$Acknowledgenotificationset, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
acknowledgeNotificationSet(params: Params$Resource$Enterprises$Acknowledgenotificationset, callback: BodyResponseCallback<void>): void;
acknowledgeNotificationSet(callback: BodyResponseCallback<void>): void;
/**
* androidenterprise.enterprises.completeSignup
* @desc Completes the signup flow, by specifying the Completion token and Enterprise token. This request must not be called multiple times for a given Enterprise Token.
* @alias androidenterprise.enterprises.completeSignup
* @memberOf! ()
*
* @param {object=} params Parameters for request
* @param {string=} params.completionToken The Completion token initially returned by GenerateSignupUrl.
* @param {string=} params.enterpriseToken The Enterprise token appended to the Callback URL.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
completeSignup(params?: Params$Resource$Enterprises$Completesignup, options?: MethodOptions): GaxiosPromise<Schema$Enterprise>;
completeSignup(params: Params$Resource$Enterprises$Completesignup, options: MethodOptions | BodyResponseCallback<Schema$Enterprise>, callback: BodyResponseCallback<Schema$Enterprise>): void;
completeSignup(params: Params$Resource$Enterprises$Completesignup, callback: BodyResponseCallback<Schema$Enterprise>): void;
completeSignup(callback: BodyResponseCallback<Schema$Enterprise>): void;
/**
* androidenterprise.enterprises.createWebToken
* @desc Returns a unique token to access an embeddable UI. To generate a web UI, pass the generated token into the managed Google Play javascript API. Each token may only be used to start one UI session. See the javascript API documentation for further information.
* @alias androidenterprise.enterprises.createWebToken
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {().AdministratorWebTokenSpec} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
createWebToken(params?: Params$Resource$Enterprises$Createwebtoken, options?: MethodOptions): GaxiosPromise<Schema$AdministratorWebToken>;
createWebToken(params: Params$Resource$Enterprises$Createwebtoken, options: MethodOptions | BodyResponseCallback<Schema$AdministratorWebToken>, callback: BodyResponseCallback<Schema$AdministratorWebToken>): void;
createWebToken(params: Params$Resource$Enterprises$Createwebtoken, callback: BodyResponseCallback<Schema$AdministratorWebToken>): void;
createWebToken(callback: BodyResponseCallback<Schema$AdministratorWebToken>): void;
/**
* androidenterprise.enterprises.enroll
* @desc Enrolls an enterprise with the calling EMM.
* @alias androidenterprise.enterprises.enroll
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.token The token provided by the enterprise to register the EMM.
* @param {().Enterprise} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
enroll(params?: Params$Resource$Enterprises$Enroll, options?: MethodOptions): GaxiosPromise<Schema$Enterprise>;
enroll(params: Params$Resource$Enterprises$Enroll, options: MethodOptions | BodyResponseCallback<Schema$Enterprise>, callback: BodyResponseCallback<Schema$Enterprise>): void;
enroll(params: Params$Resource$Enterprises$Enroll, callback: BodyResponseCallback<Schema$Enterprise>): void;
enroll(callback: BodyResponseCallback<Schema$Enterprise>): void;
/**
* androidenterprise.enterprises.generateSignupUrl
* @desc Generates a sign-up URL.
* @alias androidenterprise.enterprises.generateSignupUrl
* @memberOf! ()
*
* @param {object=} params Parameters for request
* @param {string=} params.callbackUrl The callback URL to which the Admin will be redirected after successfully creating an enterprise. Before redirecting there the system will add a single query parameter to this URL named "enterpriseToken" which will contain an opaque token to be used for the CompleteSignup request. Beware that this means that the URL will be parsed, the parameter added and then a new URL formatted, i.e. there may be some minor formatting changes and, more importantly, the URL must be well-formed so that it can be parsed.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
generateSignupUrl(params?: Params$Resource$Enterprises$Generatesignupurl, options?: MethodOptions): GaxiosPromise<Schema$SignupInfo>;
generateSignupUrl(params: Params$Resource$Enterprises$Generatesignupurl, options: MethodOptions | BodyResponseCallback<Schema$SignupInfo>, callback: BodyResponseCallback<Schema$SignupInfo>): void;
generateSignupUrl(params: Params$Resource$Enterprises$Generatesignupurl, callback: BodyResponseCallback<Schema$SignupInfo>): void;
generateSignupUrl(callback: BodyResponseCallback<Schema$SignupInfo>): void;
/**
* androidenterprise.enterprises.get
* @desc Retrieves the name and domain of an enterprise.
* @alias androidenterprise.enterprises.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Enterprises$Get, options?: MethodOptions): GaxiosPromise<Schema$Enterprise>;
get(params: Params$Resource$Enterprises$Get, options: MethodOptions | BodyResponseCallback<Schema$Enterprise>, callback: BodyResponseCallback<Schema$Enterprise>): void;
get(params: Params$Resource$Enterprises$Get, callback: BodyResponseCallback<Schema$Enterprise>): void;
get(callback: BodyResponseCallback<Schema$Enterprise>): void;
/**
* androidenterprise.enterprises.getServiceAccount
* @desc Returns a service account and credentials. The service account can be bound to the enterprise by calling setAccount. The service account is unique to this enterprise and EMM, and will be deleted if the enterprise is unbound. The credentials contain private key data and are not stored server-side. This method can only be called after calling Enterprises.Enroll or Enterprises.CompleteSignup, and before Enterprises.SetAccount; at other times it will return an error. Subsequent calls after the first will generate a new, unique set of credentials, and invalidate the previously generated credentials. Once the service account is bound to the enterprise, it can be managed using the serviceAccountKeys resource.
* @alias androidenterprise.enterprises.getServiceAccount
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string=} params.keyType The type of credential to return with the service account. Required.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
getServiceAccount(params?: Params$Resource$Enterprises$Getserviceaccount, options?: MethodOptions): GaxiosPromise<Schema$ServiceAccount>;
getServiceAccount(params: Params$Resource$Enterprises$Getserviceaccount, options: MethodOptions | BodyResponseCallback<Schema$ServiceAccount>, callback: BodyResponseCallback<Schema$ServiceAccount>): void;
getServiceAccount(params: Params$Resource$Enterprises$Getserviceaccount, callback: BodyResponseCallback<Schema$ServiceAccount>): void;
getServiceAccount(callback: BodyResponseCallback<Schema$ServiceAccount>): void;
/**
* androidenterprise.enterprises.getStoreLayout
* @desc Returns the store layout for the enterprise. If the store layout has not been set, returns "basic" as the store layout type and no homepage.
* @alias androidenterprise.enterprises.getStoreLayout
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
getStoreLayout(params?: Params$Resource$Enterprises$Getstorelayout, options?: MethodOptions): GaxiosPromise<Schema$StoreLayout>;
getStoreLayout(params: Params$Resource$Enterprises$Getstorelayout, options: MethodOptions | BodyResponseCallback<Schema$StoreLayout>, callback: BodyResponseCallback<Schema$StoreLayout>): void;
getStoreLayout(params: Params$Resource$Enterprises$Getstorelayout, callback: BodyResponseCallback<Schema$StoreLayout>): void;
getStoreLayout(callback: BodyResponseCallback<Schema$StoreLayout>): void;
/**
* androidenterprise.enterprises.list
* @desc Looks up an enterprise by domain name. This is only supported for enterprises created via the Google-initiated creation flow. Lookup of the id is not needed for enterprises created via the EMM-initiated flow since the EMM learns the enterprise ID in the callback specified in the Enterprises.generateSignupUrl call.
* @alias androidenterprise.enterprises.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.domain The exact primary domain name of the enterprise to look up.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Enterprises$List, options?: MethodOptions): GaxiosPromise<Schema$EnterprisesListResponse>;
list(params: Params$Resource$Enterprises$List, options: MethodOptions | BodyResponseCallback<Schema$EnterprisesListResponse>, callback: BodyResponseCallback<Schema$EnterprisesListResponse>): void;
list(params: Params$Resource$Enterprises$List, callback: BodyResponseCallback<Schema$EnterprisesListResponse>): void;
list(callback: BodyResponseCallback<Schema$EnterprisesListResponse>): void;
/**
* androidenterprise.enterprises.pullNotificationSet
* @desc Pulls and returns a notification set for the enterprises associated with the service account authenticated for the request. The notification set may be empty if no notification are pending. A notification set returned needs to be acknowledged within 20 seconds by calling Enterprises.AcknowledgeNotificationSet, unless the notification set is empty. Notifications that are not acknowledged within the 20 seconds will eventually be included again in the response to another PullNotificationSet request, and those that are never acknowledged will ultimately be deleted according to the Google Cloud Platform Pub/Sub system policy. Multiple requests might be performed concurrently to retrieve notifications, in which case the pending notifications (if any) will be split among each caller, if any are pending. If no notifications are present, an empty notification list is returned. Subsequent requests may return more notifications once they become available.
* @alias androidenterprise.enterprises.pullNotificationSet
* @memberOf! ()
*
* @param {object=} params Parameters for request
* @param {string=} params.requestMode The request mode for pulling notifications. Specifying waitForNotifications will cause the request to block and wait until one or more notifications are present, or return an empty notification list if no notifications are present after some time. Speciying returnImmediately will cause the request to immediately return the pending notifications, or an empty list if no notifications are present. If omitted, defaults to waitForNotifications.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
pullNotificationSet(params?: Params$Resource$Enterprises$Pullnotificationset, options?: MethodOptions): GaxiosPromise<Schema$NotificationSet>;
pullNotificationSet(params: Params$Resource$Enterprises$Pullnotificationset, options: MethodOptions | BodyResponseCallback<Schema$NotificationSet>, callback: BodyResponseCallback<Schema$NotificationSet>): void;
pullNotificationSet(params: Params$Resource$Enterprises$Pullnotificationset, callback: BodyResponseCallback<Schema$NotificationSet>): void;
pullNotificationSet(callback: BodyResponseCallback<Schema$NotificationSet>): void;
/**
* androidenterprise.enterprises.sendTestPushNotification
* @desc Sends a test notification to validate the EMM integration with the Google Cloud Pub/Sub service for this enterprise.
* @alias androidenterprise.enterprises.sendTestPushNotification
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
sendTestPushNotification(params?: Params$Resource$Enterprises$Sendtestpushnotification, options?: MethodOptions): GaxiosPromise<Schema$EnterprisesSendTestPushNotificationResponse>;
sendTestPushNotification(params: Params$Resource$Enterprises$Sendtestpushnotification, options: MethodOptions | BodyResponseCallback<Schema$EnterprisesSendTestPushNotificationResponse>, callback: BodyResponseCallback<Schema$EnterprisesSendTestPushNotificationResponse>): void;
sendTestPushNotification(params: Params$Resource$Enterprises$Sendtestpushnotification, callback: BodyResponseCallback<Schema$EnterprisesSendTestPushNotificationResponse>): void;
sendTestPushNotification(callback: BodyResponseCallback<Schema$EnterprisesSendTestPushNotificationResponse>): void;
/**
* androidenterprise.enterprises.setAccount
* @desc Sets the account that will be used to authenticate to the API as the enterprise.
* @alias androidenterprise.enterprises.setAccount
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {().EnterpriseAccount} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
setAccount(params?: Params$Resource$Enterprises$Setaccount, options?: MethodOptions): GaxiosPromise<Schema$EnterpriseAccount>;
setAccount(params: Params$Resource$Enterprises$Setaccount, options: MethodOptions | BodyResponseCallback<Schema$EnterpriseAccount>, callback: BodyResponseCallback<Schema$EnterpriseAccount>): void;
setAccount(params: Params$Resource$Enterprises$Setaccount, callback: BodyResponseCallback<Schema$EnterpriseAccount>): void;
setAccount(callback: BodyResponseCallback<Schema$EnterpriseAccount>): void;
/**
* androidenterprise.enterprises.setStoreLayout
* @desc Sets the store layout for the enterprise. By default, storeLayoutType is set to "basic" and the basic store layout is enabled. The basic layout only contains apps approved by the admin, and that have been added to the available product set for a user (using the setAvailableProductSet call). Apps on the page are sorted in order of their product ID value. If you create a custom store layout (by setting storeLayoutType = "custom" and setting a homepage), the basic store layout is disabled.
* @alias androidenterprise.enterprises.setStoreLayout
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {().StoreLayout} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
setStoreLayout(params?: Params$Resource$Enterprises$Setstorelayout, options?: MethodOptions): GaxiosPromise<Schema$StoreLayout>;
setStoreLayout(params: Params$Resource$Enterprises$Setstorelayout, options: MethodOptions | BodyResponseCallback<Schema$StoreLayout>, callback: BodyResponseCallback<Schema$StoreLayout>): void;
setStoreLayout(params: Params$Resource$Enterprises$Setstorelayout, callback: BodyResponseCallback<Schema$StoreLayout>): void;
setStoreLayout(callback: BodyResponseCallback<Schema$StoreLayout>): void;
/**
* androidenterprise.enterprises.unenroll
* @desc Unenrolls an enterprise from the calling EMM.
* @alias androidenterprise.enterprises.unenroll
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
unenroll(params?: Params$Resource$Enterprises$Unenroll, options?: MethodOptions): GaxiosPromise<void>;
unenroll(params: Params$Resource$Enterprises$Unenroll, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
unenroll(params: Params$Resource$Enterprises$Unenroll, callback: BodyResponseCallback<void>): void;
unenroll(callback: BodyResponseCallback<void>): void;
}
export interface Params$Resource$Enterprises$Acknowledgenotificationset extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The notification set ID as returned by Enterprises.PullNotificationSet. This must be provided.
*/
notificationSetId?: string;
}
export interface Params$Resource$Enterprises$Completesignup extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The Completion token initially returned by GenerateSignupUrl.
*/
completionToken?: string;
/**
* The Enterprise token appended to the Callback URL.
*/
enterpriseToken?: string;
}
export interface Params$Resource$Enterprises$Createwebtoken extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$AdministratorWebTokenSpec;
}
export interface Params$Resource$Enterprises$Enroll extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The token provided by the enterprise to register the EMM.
*/
token?: string;
/**
* Request body metadata
*/
requestBody?: Schema$Enterprise;
}
export interface Params$Resource$Enterprises$Generatesignupurl extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The callback URL to which the Admin will be redirected after successfully creating an enterprise. Before redirecting there the system will add a single query parameter to this URL named "enterpriseToken" which will contain an opaque token to be used for the CompleteSignup request. Beware that this means that the URL will be parsed, the parameter added and then a new URL formatted, i.e. there may be some minor formatting changes and, more importantly, the URL must be well-formed so that it can be parsed.
*/
callbackUrl?: string;
}
export interface Params$Resource$Enterprises$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
}
export interface Params$Resource$Enterprises$Getserviceaccount extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The type of credential to return with the service account. Required.
*/
keyType?: string;
}
export interface Params$Resource$Enterprises$Getstorelayout extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
}
export interface Params$Resource$Enterprises$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The exact primary domain name of the enterprise to look up.
*/
domain?: string;
}
export interface Params$Resource$Enterprises$Pullnotificationset extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The request mode for pulling notifications. Specifying waitForNotifications will cause the request to block and wait until one or more notifications are present, or return an empty notification list if no notifications are present after some time. Speciying returnImmediately will cause the request to immediately return the pending notifications, or an empty list if no notifications are present. If omitted, defaults to waitForNotifications.
*/
requestMode?: string;
}
export interface Params$Resource$Enterprises$Sendtestpushnotification extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
}
export interface Params$Resource$Enterprises$Setaccount extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$EnterpriseAccount;
}
export interface Params$Resource$Enterprises$Setstorelayout extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$StoreLayout;
}
export interface Params$Resource$Enterprises$Unenroll extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
}
export class Resource$Entitlements {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* androidenterprise.entitlements.delete
* @desc Removes an entitlement to an app for a user.
* @alias androidenterprise.entitlements.delete
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.entitlementId The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".
* @param {string} params.userId The ID of the user.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
delete(params?: Params$Resource$Entitlements$Delete, options?: MethodOptions): GaxiosPromise<void>;
delete(params: Params$Resource$Entitlements$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
delete(params: Params$Resource$Entitlements$Delete, callback: BodyResponseCallback<void>): void;
delete(callback: BodyResponseCallback<void>): void;
/**
* androidenterprise.entitlements.get
* @desc Retrieves details of an entitlement.
* @alias androidenterprise.entitlements.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.entitlementId The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".
* @param {string} params.userId The ID of the user.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Entitlements$Get, options?: MethodOptions): GaxiosPromise<Schema$Entitlement>;
get(params: Params$Resource$Entitlements$Get, options: MethodOptions | BodyResponseCallback<Schema$Entitlement>, callback: BodyResponseCallback<Schema$Entitlement>): void;
get(params: Params$Resource$Entitlements$Get, callback: BodyResponseCallback<Schema$Entitlement>): void;
get(callback: BodyResponseCallback<Schema$Entitlement>): void;
/**
* androidenterprise.entitlements.list
* @desc Lists all entitlements for the specified user. Only the ID is set.
* @alias androidenterprise.entitlements.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.userId The ID of the user.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Entitlements$List, options?: MethodOptions): GaxiosPromise<Schema$EntitlementsListResponse>;
list(params: Params$Resource$Entitlements$List, options: MethodOptions | BodyResponseCallback<Schema$EntitlementsListResponse>, callback: BodyResponseCallback<Schema$EntitlementsListResponse>): void;
list(params: Params$Resource$Entitlements$List, callback: BodyResponseCallback<Schema$EntitlementsListResponse>): void;
list(callback: BodyResponseCallback<Schema$EntitlementsListResponse>): void;
/**
* androidenterprise.entitlements.patch
* @desc Adds or updates an entitlement to an app for a user. This method supports patch semantics.
* @alias androidenterprise.entitlements.patch
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.entitlementId The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".
* @param {boolean=} params.install Set to true to also install the product on all the user's devices where possible. Failure to install on one or more devices will not prevent this operation from returning successfully, as long as the entitlement was successfully assigned to the user.
* @param {string} params.userId The ID of the user.
* @param {().Entitlement} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
patch(params?: Params$Resource$Entitlements$Patch, options?: MethodOptions): GaxiosPromise<Schema$Entitlement>;
patch(params: Params$Resource$Entitlements$Patch, options: MethodOptions | BodyResponseCallback<Schema$Entitlement>, callback: BodyResponseCallback<Schema$Entitlement>): void;
patch(params: Params$Resource$Entitlements$Patch, callback: BodyResponseCallback<Schema$Entitlement>): void;
patch(callback: BodyResponseCallback<Schema$Entitlement>): void;
/**
* androidenterprise.entitlements.update
* @desc Adds or updates an entitlement to an app for a user.
* @alias androidenterprise.entitlements.update
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.entitlementId The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".
* @param {boolean=} params.install Set to true to also install the product on all the user's devices where possible. Failure to install on one or more devices will not prevent this operation from returning successfully, as long as the entitlement was successfully assigned to the user.
* @param {string} params.userId The ID of the user.
* @param {().Entitlement} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
update(params?: Params$Resource$Entitlements$Update, options?: MethodOptions): GaxiosPromise<Schema$Entitlement>;
update(params: Params$Resource$Entitlements$Update, options: MethodOptions | BodyResponseCallback<Schema$Entitlement>, callback: BodyResponseCallback<Schema$Entitlement>): void;
update(params: Params$Resource$Entitlements$Update, callback: BodyResponseCallback<Schema$Entitlement>): void;
update(callback: BodyResponseCallback<Schema$Entitlement>): void;
}
export interface Params$Resource$Entitlements$Delete extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".
*/
entitlementId?: string;
/**
* The ID of the user.
*/
userId?: string;
}
export interface Params$Resource$Entitlements$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".
*/
entitlementId?: string;
/**
* The ID of the user.
*/
userId?: string;
}
export interface Params$Resource$Entitlements$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the user.
*/
userId?: string;
}
export interface Params$Resource$Entitlements$Patch extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".
*/
entitlementId?: string;
/**
* Set to true to also install the product on all the user's devices where possible. Failure to install on one or more devices will not prevent this operation from returning successfully, as long as the entitlement was successfully assigned to the user.
*/
install?: boolean;
/**
* The ID of the user.
*/
userId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$Entitlement;
}
export interface Params$Resource$Entitlements$Update extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".
*/
entitlementId?: string;
/**
* Set to true to also install the product on all the user's devices where possible. Failure to install on one or more devices will not prevent this operation from returning successfully, as long as the entitlement was successfully assigned to the user.
*/
install?: boolean;
/**
* The ID of the user.
*/
userId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$Entitlement;
}
export class Resource$Grouplicenses {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* androidenterprise.grouplicenses.get
* @desc Retrieves details of an enterprise's group license for a product.
* @alias androidenterprise.grouplicenses.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.groupLicenseId The ID of the product the group license is for, e.g. "app:com.google.android.gm".
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Grouplicenses$Get, options?: MethodOptions): GaxiosPromise<Schema$GroupLicense>;
get(params: Params$Resource$Grouplicenses$Get, options: MethodOptions | BodyResponseCallback<Schema$GroupLicense>, callback: BodyResponseCallback<Schema$GroupLicense>): void;
get(params: Params$Resource$Grouplicenses$Get, callback: BodyResponseCallback<Schema$GroupLicense>): void;
get(callback: BodyResponseCallback<Schema$GroupLicense>): void;
/**
* androidenterprise.grouplicenses.list
* @desc Retrieves IDs of all products for which the enterprise has a group license.
* @alias androidenterprise.grouplicenses.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Grouplicenses$List, options?: MethodOptions): GaxiosPromise<Schema$GroupLicensesListResponse>;
list(params: Params$Resource$Grouplicenses$List, options: MethodOptions | BodyResponseCallback<Schema$GroupLicensesListResponse>, callback: BodyResponseCallback<Schema$GroupLicensesListResponse>): void;
list(params: Params$Resource$Grouplicenses$List, callback: BodyResponseCallback<Schema$GroupLicensesListResponse>): void;
list(callback: BodyResponseCallback<Schema$GroupLicensesListResponse>): void;
}
export interface Params$Resource$Grouplicenses$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the product the group license is for, e.g. "app:com.google.android.gm".
*/
groupLicenseId?: string;
}
export interface Params$Resource$Grouplicenses$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
}
export class Resource$Grouplicenseusers {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* androidenterprise.grouplicenseusers.list
* @desc Retrieves the IDs of the users who have been granted entitlements under the license.
* @alias androidenterprise.grouplicenseusers.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.groupLicenseId The ID of the product the group license is for, e.g. "app:com.google.android.gm".
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Grouplicenseusers$List, options?: MethodOptions): GaxiosPromise<Schema$GroupLicenseUsersListResponse>;
list(params: Params$Resource$Grouplicenseusers$List, options: MethodOptions | BodyResponseCallback<Schema$GroupLicenseUsersListResponse>, callback: BodyResponseCallback<Schema$GroupLicenseUsersListResponse>): void;
list(params: Params$Resource$Grouplicenseusers$List, callback: BodyResponseCallback<Schema$GroupLicenseUsersListResponse>): void;
list(callback: BodyResponseCallback<Schema$GroupLicenseUsersListResponse>): void;
}
export interface Params$Resource$Grouplicenseusers$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the product the group license is for, e.g. "app:com.google.android.gm".
*/
groupLicenseId?: string;
}
export class Resource$Installs {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* androidenterprise.installs.delete
* @desc Requests to remove an app from a device. A call to get or list will still show the app as installed on the device until it is actually removed.
* @alias androidenterprise.installs.delete
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.deviceId The Android ID of the device.
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.installId The ID of the product represented by the install, e.g. "app:com.google.android.gm".
* @param {string} params.userId The ID of the user.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
delete(params?: Params$Resource$Installs$Delete, options?: MethodOptions): GaxiosPromise<void>;
delete(params: Params$Resource$Installs$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
delete(params: Params$Resource$Installs$Delete, callback: BodyResponseCallback<void>): void;
delete(callback: BodyResponseCallback<void>): void;
/**
* androidenterprise.installs.get
* @desc Retrieves details of an installation of an app on a device.
* @alias androidenterprise.installs.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.deviceId The Android ID of the device.
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.installId The ID of the product represented by the install, e.g. "app:com.google.android.gm".
* @param {string} params.userId The ID of the user.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Installs$Get, options?: MethodOptions): GaxiosPromise<Schema$Install>;
get(params: Params$Resource$Installs$Get, options: MethodOptions | BodyResponseCallback<Schema$Install>, callback: BodyResponseCallback<Schema$Install>): void;
get(params: Params$Resource$Installs$Get, callback: BodyResponseCallback<Schema$Install>): void;
get(callback: BodyResponseCallback<Schema$Install>): void;
/**
* androidenterprise.installs.list
* @desc Retrieves the details of all apps installed on the specified device.
* @alias androidenterprise.installs.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.deviceId The Android ID of the device.
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.userId The ID of the user.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Installs$List, options?: MethodOptions): GaxiosPromise<Schema$InstallsListResponse>;
list(params: Params$Resource$Installs$List, options: MethodOptions | BodyResponseCallback<Schema$InstallsListResponse>, callback: BodyResponseCallback<Schema$InstallsListResponse>): void;
list(params: Params$Resource$Installs$List, callback: BodyResponseCallback<Schema$InstallsListResponse>): void;
list(callback: BodyResponseCallback<Schema$InstallsListResponse>): void;
/**
* androidenterprise.installs.patch
* @desc Requests to install the latest version of an app to a device. If the app is already installed, then it is updated to the latest version if necessary. This method supports patch semantics.
* @alias androidenterprise.installs.patch
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.deviceId The Android ID of the device.
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.installId The ID of the product represented by the install, e.g. "app:com.google.android.gm".
* @param {string} params.userId The ID of the user.
* @param {().Install} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
patch(params?: Params$Resource$Installs$Patch, options?: MethodOptions): GaxiosPromise<Schema$Install>;
patch(params: Params$Resource$Installs$Patch, options: MethodOptions | BodyResponseCallback<Schema$Install>, callback: BodyResponseCallback<Schema$Install>): void;
patch(params: Params$Resource$Installs$Patch, callback: BodyResponseCallback<Schema$Install>): void;
patch(callback: BodyResponseCallback<Schema$Install>): void;
/**
* androidenterprise.installs.update
* @desc Requests to install the latest version of an app to a device. If the app is already installed, then it is updated to the latest version if necessary.
* @alias androidenterprise.installs.update
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.deviceId The Android ID of the device.
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.installId The ID of the product represented by the install, e.g. "app:com.google.android.gm".
* @param {string} params.userId The ID of the user.
* @param {().Install} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
update(params?: Params$Resource$Installs$Update, options?: MethodOptions): GaxiosPromise<Schema$Install>;
update(params: Params$Resource$Installs$Update, options: MethodOptions | BodyResponseCallback<Schema$Install>, callback: BodyResponseCallback<Schema$Install>): void;
update(params: Params$Resource$Installs$Update, callback: BodyResponseCallback<Schema$Install>): void;
update(callback: BodyResponseCallback<Schema$Install>): void;
}
export interface Params$Resource$Installs$Delete extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The Android ID of the device.
*/
deviceId?: string;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the product represented by the install, e.g. "app:com.google.android.gm".
*/
installId?: string;
/**
* The ID of the user.
*/
userId?: string;
}
export interface Params$Resource$Installs$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The Android ID of the device.
*/
deviceId?: string;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the product represented by the install, e.g. "app:com.google.android.gm".
*/
installId?: string;
/**
* The ID of the user.
*/
userId?: string;
}
export interface Params$Resource$Installs$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The Android ID of the device.
*/
deviceId?: string;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the user.
*/
userId?: string;
}
export interface Params$Resource$Installs$Patch extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The Android ID of the device.
*/
deviceId?: string;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the product represented by the install, e.g. "app:com.google.android.gm".
*/
installId?: string;
/**
* The ID of the user.
*/
userId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$Install;
}
export interface Params$Resource$Installs$Update extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The Android ID of the device.
*/
deviceId?: string;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the product represented by the install, e.g. "app:com.google.android.gm".
*/
installId?: string;
/**
* The ID of the user.
*/
userId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$Install;
}
export class Resource$Managedconfigurationsfordevice {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* androidenterprise.managedconfigurationsfordevice.delete
* @desc Removes a per-device managed configuration for an app for the specified device.
* @alias androidenterprise.managedconfigurationsfordevice.delete
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.deviceId The Android ID of the device.
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.managedConfigurationForDeviceId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm".
* @param {string} params.userId The ID of the user.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
delete(params?: Params$Resource$Managedconfigurationsfordevice$Delete, options?: MethodOptions): GaxiosPromise<void>;
delete(params: Params$Resource$Managedconfigurationsfordevice$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
delete(params: Params$Resource$Managedconfigurationsfordevice$Delete, callback: BodyResponseCallback<void>): void;
delete(callback: BodyResponseCallback<void>): void;
/**
* androidenterprise.managedconfigurationsfordevice.get
* @desc Retrieves details of a per-device managed configuration.
* @alias androidenterprise.managedconfigurationsfordevice.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.deviceId The Android ID of the device.
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.managedConfigurationForDeviceId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm".
* @param {string} params.userId The ID of the user.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Managedconfigurationsfordevice$Get, options?: MethodOptions): GaxiosPromise<Schema$ManagedConfiguration>;
get(params: Params$Resource$Managedconfigurationsfordevice$Get, options: MethodOptions | BodyResponseCallback<Schema$ManagedConfiguration>, callback: BodyResponseCallback<Schema$ManagedConfiguration>): void;
get(params: Params$Resource$Managedconfigurationsfordevice$Get, callback: BodyResponseCallback<Schema$ManagedConfiguration>): void;
get(callback: BodyResponseCallback<Schema$ManagedConfiguration>): void;
/**
* androidenterprise.managedconfigurationsfordevice.list
* @desc Lists all the per-device managed configurations for the specified device. Only the ID is set.
* @alias androidenterprise.managedconfigurationsfordevice.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.deviceId The Android ID of the device.
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.userId The ID of the user.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Managedconfigurationsfordevice$List, options?: MethodOptions): GaxiosPromise<Schema$ManagedConfigurationsForDeviceListResponse>;
list(params: Params$Resource$Managedconfigurationsfordevice$List, options: MethodOptions | BodyResponseCallback<Schema$ManagedConfigurationsForDeviceListResponse>, callback: BodyResponseCallback<Schema$ManagedConfigurationsForDeviceListResponse>): void;
list(params: Params$Resource$Managedconfigurationsfordevice$List, callback: BodyResponseCallback<Schema$ManagedConfigurationsForDeviceListResponse>): void;
list(callback: BodyResponseCallback<Schema$ManagedConfigurationsForDeviceListResponse>): void;
/**
* androidenterprise.managedconfigurationsfordevice.patch
* @desc Adds or updates a per-device managed configuration for an app for the specified device. This method supports patch semantics.
* @alias androidenterprise.managedconfigurationsfordevice.patch
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.deviceId The Android ID of the device.
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.managedConfigurationForDeviceId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm".
* @param {string} params.userId The ID of the user.
* @param {().ManagedConfiguration} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
patch(params?: Params$Resource$Managedconfigurationsfordevice$Patch, options?: MethodOptions): GaxiosPromise<Schema$ManagedConfiguration>;
patch(params: Params$Resource$Managedconfigurationsfordevice$Patch, options: MethodOptions | BodyResponseCallback<Schema$ManagedConfiguration>, callback: BodyResponseCallback<Schema$ManagedConfiguration>): void;
patch(params: Params$Resource$Managedconfigurationsfordevice$Patch, callback: BodyResponseCallback<Schema$ManagedConfiguration>): void;
patch(callback: BodyResponseCallback<Schema$ManagedConfiguration>): void;
/**
* androidenterprise.managedconfigurationsfordevice.update
* @desc Adds or updates a per-device managed configuration for an app for the specified device.
* @alias androidenterprise.managedconfigurationsfordevice.update
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.deviceId The Android ID of the device.
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.managedConfigurationForDeviceId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm".
* @param {string} params.userId The ID of the user.
* @param {().ManagedConfiguration} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
update(params?: Params$Resource$Managedconfigurationsfordevice$Update, options?: MethodOptions): GaxiosPromise<Schema$ManagedConfiguration>;
update(params: Params$Resource$Managedconfigurationsfordevice$Update, options: MethodOptions | BodyResponseCallback<Schema$ManagedConfiguration>, callback: BodyResponseCallback<Schema$ManagedConfiguration>): void;
update(params: Params$Resource$Managedconfigurationsfordevice$Update, callback: BodyResponseCallback<Schema$ManagedConfiguration>): void;
update(callback: BodyResponseCallback<Schema$ManagedConfiguration>): void;
}
export interface Params$Resource$Managedconfigurationsfordevice$Delete extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The Android ID of the device.
*/
deviceId?: string;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm".
*/
managedConfigurationForDeviceId?: string;
/**
* The ID of the user.
*/
userId?: string;
}
export interface Params$Resource$Managedconfigurationsfordevice$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The Android ID of the device.
*/
deviceId?: string;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm".
*/
managedConfigurationForDeviceId?: string;
/**
* The ID of the user.
*/
userId?: string;
}
export interface Params$Resource$Managedconfigurationsfordevice$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The Android ID of the device.
*/
deviceId?: string;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the user.
*/
userId?: string;
}
export interface Params$Resource$Managedconfigurationsfordevice$Patch extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The Android ID of the device.
*/
deviceId?: string;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm".
*/
managedConfigurationForDeviceId?: string;
/**
* The ID of the user.
*/
userId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$ManagedConfiguration;
}
export interface Params$Resource$Managedconfigurationsfordevice$Update extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The Android ID of the device.
*/
deviceId?: string;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm".
*/
managedConfigurationForDeviceId?: string;
/**
* The ID of the user.
*/
userId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$ManagedConfiguration;
}
export class Resource$Managedconfigurationsforuser {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* androidenterprise.managedconfigurationsforuser.delete
* @desc Removes a per-user managed configuration for an app for the specified user.
* @alias androidenterprise.managedconfigurationsforuser.delete
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.managedConfigurationForUserId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm".
* @param {string} params.userId The ID of the user.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
delete(params?: Params$Resource$Managedconfigurationsforuser$Delete, options?: MethodOptions): GaxiosPromise<void>;
delete(params: Params$Resource$Managedconfigurationsforuser$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
delete(params: Params$Resource$Managedconfigurationsforuser$Delete, callback: BodyResponseCallback<void>): void;
delete(callback: BodyResponseCallback<void>): void;
/**
* androidenterprise.managedconfigurationsforuser.get
* @desc Retrieves details of a per-user managed configuration for an app for the specified user.
* @alias androidenterprise.managedconfigurationsforuser.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.managedConfigurationForUserId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm".
* @param {string} params.userId The ID of the user.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Managedconfigurationsforuser$Get, options?: MethodOptions): GaxiosPromise<Schema$ManagedConfiguration>;
get(params: Params$Resource$Managedconfigurationsforuser$Get, options: MethodOptions | BodyResponseCallback<Schema$ManagedConfiguration>, callback: BodyResponseCallback<Schema$ManagedConfiguration>): void;
get(params: Params$Resource$Managedconfigurationsforuser$Get, callback: BodyResponseCallback<Schema$ManagedConfiguration>): void;
get(callback: BodyResponseCallback<Schema$ManagedConfiguration>): void;
/**
* androidenterprise.managedconfigurationsforuser.list
* @desc Lists all the per-user managed configurations for the specified user. Only the ID is set.
* @alias androidenterprise.managedconfigurationsforuser.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.userId The ID of the user.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Managedconfigurationsforuser$List, options?: MethodOptions): GaxiosPromise<Schema$ManagedConfigurationsForUserListResponse>;
list(params: Params$Resource$Managedconfigurationsforuser$List, options: MethodOptions | BodyResponseCallback<Schema$ManagedConfigurationsForUserListResponse>, callback: BodyResponseCallback<Schema$ManagedConfigurationsForUserListResponse>): void;
list(params: Params$Resource$Managedconfigurationsforuser$List, callback: BodyResponseCallback<Schema$ManagedConfigurationsForUserListResponse>): void;
list(callback: BodyResponseCallback<Schema$ManagedConfigurationsForUserListResponse>): void;
/**
* androidenterprise.managedconfigurationsforuser.patch
* @desc Adds or updates the managed configuration settings for an app for the specified user. If you support the Managed configurations iframe, you can apply managed configurations to a user by specifying an mcmId and its associated configuration variables (if any) in the request. Alternatively, all EMMs can apply managed configurations by passing a list of managed properties. This method supports patch semantics.
* @alias androidenterprise.managedconfigurationsforuser.patch
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.managedConfigurationForUserId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm".
* @param {string} params.userId The ID of the user.
* @param {().ManagedConfiguration} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
patch(params?: Params$Resource$Managedconfigurationsforuser$Patch, options?: MethodOptions): GaxiosPromise<Schema$ManagedConfiguration>;
patch(params: Params$Resource$Managedconfigurationsforuser$Patch, options: MethodOptions | BodyResponseCallback<Schema$ManagedConfiguration>, callback: BodyResponseCallback<Schema$ManagedConfiguration>): void;
patch(params: Params$Resource$Managedconfigurationsforuser$Patch, callback: BodyResponseCallback<Schema$ManagedConfiguration>): void;
patch(callback: BodyResponseCallback<Schema$ManagedConfiguration>): void;
/**
* androidenterprise.managedconfigurationsforuser.update
* @desc Adds or updates the managed configuration settings for an app for the specified user. If you support the Managed configurations iframe, you can apply managed configurations to a user by specifying an mcmId and its associated configuration variables (if any) in the request. Alternatively, all EMMs can apply managed configurations by passing a list of managed properties.
* @alias androidenterprise.managedconfigurationsforuser.update
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.managedConfigurationForUserId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm".
* @param {string} params.userId The ID of the user.
* @param {().ManagedConfiguration} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
update(params?: Params$Resource$Managedconfigurationsforuser$Update, options?: MethodOptions): GaxiosPromise<Schema$ManagedConfiguration>;
update(params: Params$Resource$Managedconfigurationsforuser$Update, options: MethodOptions | BodyResponseCallback<Schema$ManagedConfiguration>, callback: BodyResponseCallback<Schema$ManagedConfiguration>): void;
update(params: Params$Resource$Managedconfigurationsforuser$Update, callback: BodyResponseCallback<Schema$ManagedConfiguration>): void;
update(callback: BodyResponseCallback<Schema$ManagedConfiguration>): void;
}
export interface Params$Resource$Managedconfigurationsforuser$Delete extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm".
*/
managedConfigurationForUserId?: string;
/**
* The ID of the user.
*/
userId?: string;
}
export interface Params$Resource$Managedconfigurationsforuser$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm".
*/
managedConfigurationForUserId?: string;
/**
* The ID of the user.
*/
userId?: string;
}
export interface Params$Resource$Managedconfigurationsforuser$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the user.
*/
userId?: string;
}
export interface Params$Resource$Managedconfigurationsforuser$Patch extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm".
*/
managedConfigurationForUserId?: string;
/**
* The ID of the user.
*/
userId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$ManagedConfiguration;
}
export interface Params$Resource$Managedconfigurationsforuser$Update extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm".
*/
managedConfigurationForUserId?: string;
/**
* The ID of the user.
*/
userId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$ManagedConfiguration;
}
export class Resource$Managedconfigurationssettings {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* androidenterprise.managedconfigurationssettings.list
* @desc Lists all the managed configurations settings for the specified app.
* @alias androidenterprise.managedconfigurationssettings.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.productId The ID of the product for which the managed configurations settings applies to.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Managedconfigurationssettings$List, options?: MethodOptions): GaxiosPromise<Schema$ManagedConfigurationsSettingsListResponse>;
list(params: Params$Resource$Managedconfigurationssettings$List, options: MethodOptions | BodyResponseCallback<Schema$ManagedConfigurationsSettingsListResponse>, callback: BodyResponseCallback<Schema$ManagedConfigurationsSettingsListResponse>): void;
list(params: Params$Resource$Managedconfigurationssettings$List, callback: BodyResponseCallback<Schema$ManagedConfigurationsSettingsListResponse>): void;
list(callback: BodyResponseCallback<Schema$ManagedConfigurationsSettingsListResponse>): void;
}
export interface Params$Resource$Managedconfigurationssettings$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the product for which the managed configurations settings applies to.
*/
productId?: string;
}
export class Resource$Permissions {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* androidenterprise.permissions.get
* @desc Retrieves details of an Android app permission for display to an enterprise admin.
* @alias androidenterprise.permissions.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string=} params.language The BCP47 tag for the user's preferred language (e.g. "en-US", "de")
* @param {string} params.permissionId The ID of the permission.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Permissions$Get, options?: MethodOptions): GaxiosPromise<Schema$Permission>;
get(params: Params$Resource$Permissions$Get, options: MethodOptions | BodyResponseCallback<Schema$Permission>, callback: BodyResponseCallback<Schema$Permission>): void;
get(params: Params$Resource$Permissions$Get, callback: BodyResponseCallback<Schema$Permission>): void;
get(callback: BodyResponseCallback<Schema$Permission>): void;
}
export interface Params$Resource$Permissions$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The BCP47 tag for the user's preferred language (e.g. "en-US", "de")
*/
language?: string;
/**
* The ID of the permission.
*/
permissionId?: string;
}
export class Resource$Products {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* androidenterprise.products.approve
* @desc Approves the specified product and the relevant app permissions, if any. The maximum number of products that you can approve per enterprise customer is 1,000. To learn how to use managed Google Play to design and create a store layout to display approved products to your users, see Store Layout Design.
* @alias androidenterprise.products.approve
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.productId The ID of the product.
* @param {().ProductsApproveRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
approve(params?: Params$Resource$Products$Approve, options?: MethodOptions): GaxiosPromise<void>;
approve(params: Params$Resource$Products$Approve, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
approve(params: Params$Resource$Products$Approve, callback: BodyResponseCallback<void>): void;
approve(callback: BodyResponseCallback<void>): void;
/**
* androidenterprise.products.generateApprovalUrl
* @desc Generates a URL that can be rendered in an iframe to display the permissions (if any) of a product. An enterprise admin must view these permissions and accept them on behalf of their organization in order to approve that product. Admins should accept the displayed permissions by interacting with a separate UI element in the EMM console, which in turn should trigger the use of this URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to approve the product. This URL can only be used to display permissions for up to 1 day.
* @alias androidenterprise.products.generateApprovalUrl
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string=} params.languageCode The BCP 47 language code used for permission names and descriptions in the returned iframe, for instance "en-US".
* @param {string} params.productId The ID of the product.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
generateApprovalUrl(params?: Params$Resource$Products$Generateapprovalurl, options?: MethodOptions): GaxiosPromise<Schema$ProductsGenerateApprovalUrlResponse>;
generateApprovalUrl(params: Params$Resource$Products$Generateapprovalurl, options: MethodOptions | BodyResponseCallback<Schema$ProductsGenerateApprovalUrlResponse>, callback: BodyResponseCallback<Schema$ProductsGenerateApprovalUrlResponse>): void;
generateApprovalUrl(params: Params$Resource$Products$Generateapprovalurl, callback: BodyResponseCallback<Schema$ProductsGenerateApprovalUrlResponse>): void;
generateApprovalUrl(callback: BodyResponseCallback<Schema$ProductsGenerateApprovalUrlResponse>): void;
/**
* androidenterprise.products.get
* @desc Retrieves details of a product for display to an enterprise admin.
* @alias androidenterprise.products.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string=} params.language The BCP47 tag for the user's preferred language (e.g. "en-US", "de").
* @param {string} params.productId The ID of the product, e.g. "app:com.google.android.gm".
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Products$Get, options?: MethodOptions): GaxiosPromise<Schema$Product>;
get(params: Params$Resource$Products$Get, options: MethodOptions | BodyResponseCallback<Schema$Product>, callback: BodyResponseCallback<Schema$Product>): void;
get(params: Params$Resource$Products$Get, callback: BodyResponseCallback<Schema$Product>): void;
get(callback: BodyResponseCallback<Schema$Product>): void;
/**
* androidenterprise.products.getAppRestrictionsSchema
* @desc Retrieves the schema that defines the configurable properties for this product. All products have a schema, but this schema may be empty if no managed configurations have been defined. This schema can be used to populate a UI that allows an admin to configure the product. To apply a managed configuration based on the schema obtained using this API, see Managed Configurations through Play.
* @alias androidenterprise.products.getAppRestrictionsSchema
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string=} params.language The BCP47 tag for the user's preferred language (e.g. "en-US", "de").
* @param {string} params.productId The ID of the product.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
getAppRestrictionsSchema(params?: Params$Resource$Products$Getapprestrictionsschema, options?: MethodOptions): GaxiosPromise<Schema$AppRestrictionsSchema>;
getAppRestrictionsSchema(params: Params$Resource$Products$Getapprestrictionsschema, options: MethodOptions | BodyResponseCallback<Schema$AppRestrictionsSchema>, callback: BodyResponseCallback<Schema$AppRestrictionsSchema>): void;
getAppRestrictionsSchema(params: Params$Resource$Products$Getapprestrictionsschema, callback: BodyResponseCallback<Schema$AppRestrictionsSchema>): void;
getAppRestrictionsSchema(callback: BodyResponseCallback<Schema$AppRestrictionsSchema>): void;
/**
* androidenterprise.products.getPermissions
* @desc Retrieves the Android app permissions required by this app.
* @alias androidenterprise.products.getPermissions
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.productId The ID of the product.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
getPermissions(params?: Params$Resource$Products$Getpermissions, options?: MethodOptions): GaxiosPromise<Schema$ProductPermissions>;
getPermissions(params: Params$Resource$Products$Getpermissions, options: MethodOptions | BodyResponseCallback<Schema$ProductPermissions>, callback: BodyResponseCallback<Schema$ProductPermissions>): void;
getPermissions(params: Params$Resource$Products$Getpermissions, callback: BodyResponseCallback<Schema$ProductPermissions>): void;
getPermissions(callback: BodyResponseCallback<Schema$ProductPermissions>): void;
/**
* androidenterprise.products.list
* @desc Finds approved products that match a query, or all approved products if there is no query.
* @alias androidenterprise.products.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {boolean=} params.approved Specifies whether to search among all products (false) or among only products that have been approved (true). Only "true" is supported, and should be specified.
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string=} params.language The BCP47 tag for the user's preferred language (e.g. "en-US", "de"). Results are returned in the language best matching the preferred language.
* @param {integer=} params.maxResults Specifies the maximum number of products that can be returned per request. If not specified, uses a default value of 100, which is also the maximum retrievable within a single response.
* @param {string=} params.query The search query as typed in the Google Play store search box. If omitted, all approved apps will be returned (using the pagination parameters), including apps that are not available in the store (e.g. unpublished apps).
* @param {string=} params.token A pagination token is contained in a request's response when there are more products. The token can be used in a subsequent request to obtain more products, and so forth. This parameter cannot be used in the initial request.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Products$List, options?: MethodOptions): GaxiosPromise<Schema$ProductsListResponse>;
list(params: Params$Resource$Products$List, options: MethodOptions | BodyResponseCallback<Schema$ProductsListResponse>, callback: BodyResponseCallback<Schema$ProductsListResponse>): void;
list(params: Params$Resource$Products$List, callback: BodyResponseCallback<Schema$ProductsListResponse>): void;
list(callback: BodyResponseCallback<Schema$ProductsListResponse>): void;
/**
* androidenterprise.products.unapprove
* @desc Unapproves the specified product (and the relevant app permissions, if any)
* @alias androidenterprise.products.unapprove
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.productId The ID of the product.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
unapprove(params?: Params$Resource$Products$Unapprove, options?: MethodOptions): GaxiosPromise<void>;
unapprove(params: Params$Resource$Products$Unapprove, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
unapprove(params: Params$Resource$Products$Unapprove, callback: BodyResponseCallback<void>): void;
unapprove(callback: BodyResponseCallback<void>): void;
}
export interface Params$Resource$Products$Approve extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the product.
*/
productId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$ProductsApproveRequest;
}
export interface Params$Resource$Products$Generateapprovalurl extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The BCP 47 language code used for permission names and descriptions in the returned iframe, for instance "en-US".
*/
languageCode?: string;
/**
* The ID of the product.
*/
productId?: string;
}
export interface Params$Resource$Products$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The BCP47 tag for the user's preferred language (e.g. "en-US", "de").
*/
language?: string;
/**
* The ID of the product, e.g. "app:com.google.android.gm".
*/
productId?: string;
}
export interface Params$Resource$Products$Getapprestrictionsschema extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The BCP47 tag for the user's preferred language (e.g. "en-US", "de").
*/
language?: string;
/**
* The ID of the product.
*/
productId?: string;
}
export interface Params$Resource$Products$Getpermissions extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the product.
*/
productId?: string;
}
export interface Params$Resource$Products$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Specifies whether to search among all products (false) or among only products that have been approved (true). Only "true" is supported, and should be specified.
*/
approved?: boolean;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The BCP47 tag for the user's preferred language (e.g. "en-US", "de"). Results are returned in the language best matching the preferred language.
*/
language?: string;
/**
* Specifies the maximum number of products that can be returned per request. If not specified, uses a default value of 100, which is also the maximum retrievable within a single response.
*/
maxResults?: number;
/**
* The search query as typed in the Google Play store search box. If omitted, all approved apps will be returned (using the pagination parameters), including apps that are not available in the store (e.g. unpublished apps).
*/
query?: string;
/**
* A pagination token is contained in a request's response when there are more products. The token can be used in a subsequent request to obtain more products, and so forth. This parameter cannot be used in the initial request.
*/
token?: string;
}
export interface Params$Resource$Products$Unapprove extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the product.
*/
productId?: string;
}
export class Resource$Serviceaccountkeys {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* androidenterprise.serviceaccountkeys.delete
* @desc Removes and invalidates the specified credentials for the service account associated with this enterprise. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount.
* @alias androidenterprise.serviceaccountkeys.delete
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.keyId The ID of the key.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
delete(params?: Params$Resource$Serviceaccountkeys$Delete, options?: MethodOptions): GaxiosPromise<void>;
delete(params: Params$Resource$Serviceaccountkeys$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
delete(params: Params$Resource$Serviceaccountkeys$Delete, callback: BodyResponseCallback<void>): void;
delete(callback: BodyResponseCallback<void>): void;
/**
* androidenterprise.serviceaccountkeys.insert
* @desc Generates new credentials for the service account associated with this enterprise. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount. Only the type of the key should be populated in the resource to be inserted.
* @alias androidenterprise.serviceaccountkeys.insert
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {().ServiceAccountKey} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
insert(params?: Params$Resource$Serviceaccountkeys$Insert, options?: MethodOptions): GaxiosPromise<Schema$ServiceAccountKey>;
insert(params: Params$Resource$Serviceaccountkeys$Insert, options: MethodOptions | BodyResponseCallback<Schema$ServiceAccountKey>, callback: BodyResponseCallback<Schema$ServiceAccountKey>): void;
insert(params: Params$Resource$Serviceaccountkeys$Insert, callback: BodyResponseCallback<Schema$ServiceAccountKey>): void;
insert(callback: BodyResponseCallback<Schema$ServiceAccountKey>): void;
/**
* androidenterprise.serviceaccountkeys.list
* @desc Lists all active credentials for the service account associated with this enterprise. Only the ID and key type are returned. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount.
* @alias androidenterprise.serviceaccountkeys.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Serviceaccountkeys$List, options?: MethodOptions): GaxiosPromise<Schema$ServiceAccountKeysListResponse>;
list(params: Params$Resource$Serviceaccountkeys$List, options: MethodOptions | BodyResponseCallback<Schema$ServiceAccountKeysListResponse>, callback: BodyResponseCallback<Schema$ServiceAccountKeysListResponse>): void;
list(params: Params$Resource$Serviceaccountkeys$List, callback: BodyResponseCallback<Schema$ServiceAccountKeysListResponse>): void;
list(callback: BodyResponseCallback<Schema$ServiceAccountKeysListResponse>): void;
}
export interface Params$Resource$Serviceaccountkeys$Delete extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the key.
*/
keyId?: string;
}
export interface Params$Resource$Serviceaccountkeys$Insert extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$ServiceAccountKey;
}
export interface Params$Resource$Serviceaccountkeys$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
}
export class Resource$Storelayoutclusters {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* androidenterprise.storelayoutclusters.delete
* @desc Deletes a cluster.
* @alias androidenterprise.storelayoutclusters.delete
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.clusterId The ID of the cluster.
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.pageId The ID of the page.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
delete(params?: Params$Resource$Storelayoutclusters$Delete, options?: MethodOptions): GaxiosPromise<void>;
delete(params: Params$Resource$Storelayoutclusters$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
delete(params: Params$Resource$Storelayoutclusters$Delete, callback: BodyResponseCallback<void>): void;
delete(callback: BodyResponseCallback<void>): void;
/**
* androidenterprise.storelayoutclusters.get
* @desc Retrieves details of a cluster.
* @alias androidenterprise.storelayoutclusters.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.clusterId The ID of the cluster.
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.pageId The ID of the page.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Storelayoutclusters$Get, options?: MethodOptions): GaxiosPromise<Schema$StoreCluster>;
get(params: Params$Resource$Storelayoutclusters$Get, options: MethodOptions | BodyResponseCallback<Schema$StoreCluster>, callback: BodyResponseCallback<Schema$StoreCluster>): void;
get(params: Params$Resource$Storelayoutclusters$Get, callback: BodyResponseCallback<Schema$StoreCluster>): void;
get(callback: BodyResponseCallback<Schema$StoreCluster>): void;
/**
* androidenterprise.storelayoutclusters.insert
* @desc Inserts a new cluster in a page.
* @alias androidenterprise.storelayoutclusters.insert
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.pageId The ID of the page.
* @param {().StoreCluster} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
insert(params?: Params$Resource$Storelayoutclusters$Insert, options?: MethodOptions): GaxiosPromise<Schema$StoreCluster>;
insert(params: Params$Resource$Storelayoutclusters$Insert, options: MethodOptions | BodyResponseCallback<Schema$StoreCluster>, callback: BodyResponseCallback<Schema$StoreCluster>): void;
insert(params: Params$Resource$Storelayoutclusters$Insert, callback: BodyResponseCallback<Schema$StoreCluster>): void;
insert(callback: BodyResponseCallback<Schema$StoreCluster>): void;
/**
* androidenterprise.storelayoutclusters.list
* @desc Retrieves the details of all clusters on the specified page.
* @alias androidenterprise.storelayoutclusters.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.pageId The ID of the page.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Storelayoutclusters$List, options?: MethodOptions): GaxiosPromise<Schema$StoreLayoutClustersListResponse>;
list(params: Params$Resource$Storelayoutclusters$List, options: MethodOptions | BodyResponseCallback<Schema$StoreLayoutClustersListResponse>, callback: BodyResponseCallback<Schema$StoreLayoutClustersListResponse>): void;
list(params: Params$Resource$Storelayoutclusters$List, callback: BodyResponseCallback<Schema$StoreLayoutClustersListResponse>): void;
list(callback: BodyResponseCallback<Schema$StoreLayoutClustersListResponse>): void;
/**
* androidenterprise.storelayoutclusters.patch
* @desc Updates a cluster. This method supports patch semantics.
* @alias androidenterprise.storelayoutclusters.patch
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.clusterId The ID of the cluster.
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.pageId The ID of the page.
* @param {().StoreCluster} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
patch(params?: Params$Resource$Storelayoutclusters$Patch, options?: MethodOptions): GaxiosPromise<Schema$StoreCluster>;
patch(params: Params$Resource$Storelayoutclusters$Patch, options: MethodOptions | BodyResponseCallback<Schema$StoreCluster>, callback: BodyResponseCallback<Schema$StoreCluster>): void;
patch(params: Params$Resource$Storelayoutclusters$Patch, callback: BodyResponseCallback<Schema$StoreCluster>): void;
patch(callback: BodyResponseCallback<Schema$StoreCluster>): void;
/**
* androidenterprise.storelayoutclusters.update
* @desc Updates a cluster.
* @alias androidenterprise.storelayoutclusters.update
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.clusterId The ID of the cluster.
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.pageId The ID of the page.
* @param {().StoreCluster} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
update(params?: Params$Resource$Storelayoutclusters$Update, options?: MethodOptions): GaxiosPromise<Schema$StoreCluster>;
update(params: Params$Resource$Storelayoutclusters$Update, options: MethodOptions | BodyResponseCallback<Schema$StoreCluster>, callback: BodyResponseCallback<Schema$StoreCluster>): void;
update(params: Params$Resource$Storelayoutclusters$Update, callback: BodyResponseCallback<Schema$StoreCluster>): void;
update(callback: BodyResponseCallback<Schema$StoreCluster>): void;
}
export interface Params$Resource$Storelayoutclusters$Delete extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the cluster.
*/
clusterId?: string;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the page.
*/
pageId?: string;
}
export interface Params$Resource$Storelayoutclusters$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the cluster.
*/
clusterId?: string;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the page.
*/
pageId?: string;
}
export interface Params$Resource$Storelayoutclusters$Insert extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the page.
*/
pageId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$StoreCluster;
}
export interface Params$Resource$Storelayoutclusters$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the page.
*/
pageId?: string;
}
export interface Params$Resource$Storelayoutclusters$Patch extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the cluster.
*/
clusterId?: string;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the page.
*/
pageId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$StoreCluster;
}
export interface Params$Resource$Storelayoutclusters$Update extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the cluster.
*/
clusterId?: string;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the page.
*/
pageId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$StoreCluster;
}
export class Resource$Storelayoutpages {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* androidenterprise.storelayoutpages.delete
* @desc Deletes a store page.
* @alias androidenterprise.storelayoutpages.delete
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.pageId The ID of the page.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
delete(params?: Params$Resource$Storelayoutpages$Delete, options?: MethodOptions): GaxiosPromise<void>;
delete(params: Params$Resource$Storelayoutpages$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
delete(params: Params$Resource$Storelayoutpages$Delete, callback: BodyResponseCallback<void>): void;
delete(callback: BodyResponseCallback<void>): void;
/**
* androidenterprise.storelayoutpages.get
* @desc Retrieves details of a store page.
* @alias androidenterprise.storelayoutpages.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.pageId The ID of the page.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Storelayoutpages$Get, options?: MethodOptions): GaxiosPromise<Schema$StorePage>;
get(params: Params$Resource$Storelayoutpages$Get, options: MethodOptions | BodyResponseCallback<Schema$StorePage>, callback: BodyResponseCallback<Schema$StorePage>): void;
get(params: Params$Resource$Storelayoutpages$Get, callback: BodyResponseCallback<Schema$StorePage>): void;
get(callback: BodyResponseCallback<Schema$StorePage>): void;
/**
* androidenterprise.storelayoutpages.insert
* @desc Inserts a new store page.
* @alias androidenterprise.storelayoutpages.insert
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {().StorePage} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
insert(params?: Params$Resource$Storelayoutpages$Insert, options?: MethodOptions): GaxiosPromise<Schema$StorePage>;
insert(params: Params$Resource$Storelayoutpages$Insert, options: MethodOptions | BodyResponseCallback<Schema$StorePage>, callback: BodyResponseCallback<Schema$StorePage>): void;
insert(params: Params$Resource$Storelayoutpages$Insert, callback: BodyResponseCallback<Schema$StorePage>): void;
insert(callback: BodyResponseCallback<Schema$StorePage>): void;
/**
* androidenterprise.storelayoutpages.list
* @desc Retrieves the details of all pages in the store.
* @alias androidenterprise.storelayoutpages.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Storelayoutpages$List, options?: MethodOptions): GaxiosPromise<Schema$StoreLayoutPagesListResponse>;
list(params: Params$Resource$Storelayoutpages$List, options: MethodOptions | BodyResponseCallback<Schema$StoreLayoutPagesListResponse>, callback: BodyResponseCallback<Schema$StoreLayoutPagesListResponse>): void;
list(params: Params$Resource$Storelayoutpages$List, callback: BodyResponseCallback<Schema$StoreLayoutPagesListResponse>): void;
list(callback: BodyResponseCallback<Schema$StoreLayoutPagesListResponse>): void;
/**
* androidenterprise.storelayoutpages.patch
* @desc Updates the content of a store page. This method supports patch semantics.
* @alias androidenterprise.storelayoutpages.patch
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.pageId The ID of the page.
* @param {().StorePage} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
patch(params?: Params$Resource$Storelayoutpages$Patch, options?: MethodOptions): GaxiosPromise<Schema$StorePage>;
patch(params: Params$Resource$Storelayoutpages$Patch, options: MethodOptions | BodyResponseCallback<Schema$StorePage>, callback: BodyResponseCallback<Schema$StorePage>): void;
patch(params: Params$Resource$Storelayoutpages$Patch, callback: BodyResponseCallback<Schema$StorePage>): void;
patch(callback: BodyResponseCallback<Schema$StorePage>): void;
/**
* androidenterprise.storelayoutpages.update
* @desc Updates the content of a store page.
* @alias androidenterprise.storelayoutpages.update
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.pageId The ID of the page.
* @param {().StorePage} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
update(params?: Params$Resource$Storelayoutpages$Update, options?: MethodOptions): GaxiosPromise<Schema$StorePage>;
update(params: Params$Resource$Storelayoutpages$Update, options: MethodOptions | BodyResponseCallback<Schema$StorePage>, callback: BodyResponseCallback<Schema$StorePage>): void;
update(params: Params$Resource$Storelayoutpages$Update, callback: BodyResponseCallback<Schema$StorePage>): void;
update(callback: BodyResponseCallback<Schema$StorePage>): void;
}
export interface Params$Resource$Storelayoutpages$Delete extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the page.
*/
pageId?: string;
}
export interface Params$Resource$Storelayoutpages$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the page.
*/
pageId?: string;
}
export interface Params$Resource$Storelayoutpages$Insert extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$StorePage;
}
export interface Params$Resource$Storelayoutpages$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
}
export interface Params$Resource$Storelayoutpages$Patch extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the page.
*/
pageId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$StorePage;
}
export interface Params$Resource$Storelayoutpages$Update extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the page.
*/
pageId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$StorePage;
}
export class Resource$Users {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* androidenterprise.users.delete
* @desc Deleted an EMM-managed user.
* @alias androidenterprise.users.delete
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.userId The ID of the user.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
delete(params?: Params$Resource$Users$Delete, options?: MethodOptions): GaxiosPromise<void>;
delete(params: Params$Resource$Users$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
delete(params: Params$Resource$Users$Delete, callback: BodyResponseCallback<void>): void;
delete(callback: BodyResponseCallback<void>): void;
/**
* androidenterprise.users.generateAuthenticationToken
* @desc Generates an authentication token which the device policy client can use to provision the given EMM-managed user account on a device. The generated token is single-use and expires after a few minutes. You can provision a maximum of 10 devices per user. This call only works with EMM-managed accounts.
* @alias androidenterprise.users.generateAuthenticationToken
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.userId The ID of the user.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
generateAuthenticationToken(params?: Params$Resource$Users$Generateauthenticationtoken, options?: MethodOptions): GaxiosPromise<Schema$AuthenticationToken>;
generateAuthenticationToken(params: Params$Resource$Users$Generateauthenticationtoken, options: MethodOptions | BodyResponseCallback<Schema$AuthenticationToken>, callback: BodyResponseCallback<Schema$AuthenticationToken>): void;
generateAuthenticationToken(params: Params$Resource$Users$Generateauthenticationtoken, callback: BodyResponseCallback<Schema$AuthenticationToken>): void;
generateAuthenticationToken(callback: BodyResponseCallback<Schema$AuthenticationToken>): void;
/**
* androidenterprise.users.generateToken
* @desc Generates a token (activation code) to allow this user to configure their managed account in the Android Setup Wizard. Revokes any previously generated token. This call only works with Google managed accounts.
* @alias androidenterprise.users.generateToken
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.userId The ID of the user.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
generateToken(params?: Params$Resource$Users$Generatetoken, options?: MethodOptions): GaxiosPromise<Schema$UserToken>;
generateToken(params: Params$Resource$Users$Generatetoken, options: MethodOptions | BodyResponseCallback<Schema$UserToken>, callback: BodyResponseCallback<Schema$UserToken>): void;
generateToken(params: Params$Resource$Users$Generatetoken, callback: BodyResponseCallback<Schema$UserToken>): void;
generateToken(callback: BodyResponseCallback<Schema$UserToken>): void;
/**
* androidenterprise.users.get
* @desc Retrieves a user's details.
* @alias androidenterprise.users.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.userId The ID of the user.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Users$Get, options?: MethodOptions): GaxiosPromise<Schema$User>;
get(params: Params$Resource$Users$Get, options: MethodOptions | BodyResponseCallback<Schema$User>, callback: BodyResponseCallback<Schema$User>): void;
get(params: Params$Resource$Users$Get, callback: BodyResponseCallback<Schema$User>): void;
get(callback: BodyResponseCallback<Schema$User>): void;
/**
* androidenterprise.users.getAvailableProductSet
* @desc Retrieves the set of products a user is entitled to access.
* @alias androidenterprise.users.getAvailableProductSet
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.userId The ID of the user.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
getAvailableProductSet(params?: Params$Resource$Users$Getavailableproductset, options?: MethodOptions): GaxiosPromise<Schema$ProductSet>;
getAvailableProductSet(params: Params$Resource$Users$Getavailableproductset, options: MethodOptions | BodyResponseCallback<Schema$ProductSet>, callback: BodyResponseCallback<Schema$ProductSet>): void;
getAvailableProductSet(params: Params$Resource$Users$Getavailableproductset, callback: BodyResponseCallback<Schema$ProductSet>): void;
getAvailableProductSet(callback: BodyResponseCallback<Schema$ProductSet>): void;
/**
* androidenterprise.users.insert
* @desc Creates a new EMM-managed user. The Users resource passed in the body of the request should include an accountIdentifier and an accountType. If a corresponding user already exists with the same account identifier, the user will be updated with the resource. In this case only the displayName field can be changed.
* @alias androidenterprise.users.insert
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {().User} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
insert(params?: Params$Resource$Users$Insert, options?: MethodOptions): GaxiosPromise<Schema$User>;
insert(params: Params$Resource$Users$Insert, options: MethodOptions | BodyResponseCallback<Schema$User>, callback: BodyResponseCallback<Schema$User>): void;
insert(params: Params$Resource$Users$Insert, callback: BodyResponseCallback<Schema$User>): void;
insert(callback: BodyResponseCallback<Schema$User>): void;
/**
* androidenterprise.users.list
* @desc Looks up a user by primary email address. This is only supported for Google-managed users. Lookup of the id is not needed for EMM-managed users because the id is already returned in the result of the Users.insert call.
* @alias androidenterprise.users.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.email The exact primary email address of the user to look up.
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Users$List, options?: MethodOptions): GaxiosPromise<Schema$UsersListResponse>;
list(params: Params$Resource$Users$List, options: MethodOptions | BodyResponseCallback<Schema$UsersListResponse>, callback: BodyResponseCallback<Schema$UsersListResponse>): void;
list(params: Params$Resource$Users$List, callback: BodyResponseCallback<Schema$UsersListResponse>): void;
list(callback: BodyResponseCallback<Schema$UsersListResponse>): void;
/**
* androidenterprise.users.patch
* @desc Updates the details of an EMM-managed user. Can be used with EMM-managed users only (not Google managed users). Pass the new details in the Users resource in the request body. Only the displayName field can be changed. Other fields must either be unset or have the currently active value. This method supports patch semantics.
* @alias androidenterprise.users.patch
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.userId The ID of the user.
* @param {().User} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
patch(params?: Params$Resource$Users$Patch, options?: MethodOptions): GaxiosPromise<Schema$User>;
patch(params: Params$Resource$Users$Patch, options: MethodOptions | BodyResponseCallback<Schema$User>, callback: BodyResponseCallback<Schema$User>): void;
patch(params: Params$Resource$Users$Patch, callback: BodyResponseCallback<Schema$User>): void;
patch(callback: BodyResponseCallback<Schema$User>): void;
/**
* androidenterprise.users.revokeDeviceAccess
* @desc Revokes access to all devices currently provisioned to the user. The user will no longer be able to use the managed Play store on any of their managed devices. This call only works with EMM-managed accounts.
* @alias androidenterprise.users.revokeDeviceAccess
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.userId The ID of the user.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
revokeDeviceAccess(params?: Params$Resource$Users$Revokedeviceaccess, options?: MethodOptions): GaxiosPromise<void>;
revokeDeviceAccess(params: Params$Resource$Users$Revokedeviceaccess, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
revokeDeviceAccess(params: Params$Resource$Users$Revokedeviceaccess, callback: BodyResponseCallback<void>): void;
revokeDeviceAccess(callback: BodyResponseCallback<void>): void;
/**
* androidenterprise.users.revokeToken
* @desc Revokes a previously generated token (activation code) for the user.
* @alias androidenterprise.users.revokeToken
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.userId The ID of the user.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
revokeToken(params?: Params$Resource$Users$Revoketoken, options?: MethodOptions): GaxiosPromise<void>;
revokeToken(params: Params$Resource$Users$Revoketoken, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
revokeToken(params: Params$Resource$Users$Revoketoken, callback: BodyResponseCallback<void>): void;
revokeToken(callback: BodyResponseCallback<void>): void;
/**
* androidenterprise.users.setAvailableProductSet
* @desc Modifies the set of products that a user is entitled to access (referred to as whitelisted products). Only products that are approved or products that were previously approved (products with revoked approval) can be whitelisted.
* @alias androidenterprise.users.setAvailableProductSet
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.userId The ID of the user.
* @param {().ProductSet} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
setAvailableProductSet(params?: Params$Resource$Users$Setavailableproductset, options?: MethodOptions): GaxiosPromise<Schema$ProductSet>;
setAvailableProductSet(params: Params$Resource$Users$Setavailableproductset, options: MethodOptions | BodyResponseCallback<Schema$ProductSet>, callback: BodyResponseCallback<Schema$ProductSet>): void;
setAvailableProductSet(params: Params$Resource$Users$Setavailableproductset, callback: BodyResponseCallback<Schema$ProductSet>): void;
setAvailableProductSet(callback: BodyResponseCallback<Schema$ProductSet>): void;
/**
* androidenterprise.users.update
* @desc Updates the details of an EMM-managed user. Can be used with EMM-managed users only (not Google managed users). Pass the new details in the Users resource in the request body. Only the displayName field can be changed. Other fields must either be unset or have the currently active value.
* @alias androidenterprise.users.update
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.userId The ID of the user.
* @param {().User} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
update(params?: Params$Resource$Users$Update, options?: MethodOptions): GaxiosPromise<Schema$User>;
update(params: Params$Resource$Users$Update, options: MethodOptions | BodyResponseCallback<Schema$User>, callback: BodyResponseCallback<Schema$User>): void;
update(params: Params$Resource$Users$Update, callback: BodyResponseCallback<Schema$User>): void;
update(callback: BodyResponseCallback<Schema$User>): void;
}
export interface Params$Resource$Users$Delete extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the user.
*/
userId?: string;
}
export interface Params$Resource$Users$Generateauthenticationtoken extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the user.
*/
userId?: string;
}
export interface Params$Resource$Users$Generatetoken extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the user.
*/
userId?: string;
}
export interface Params$Resource$Users$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the user.
*/
userId?: string;
}
export interface Params$Resource$Users$Getavailableproductset extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the user.
*/
userId?: string;
}
export interface Params$Resource$Users$Insert extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$User;
}
export interface Params$Resource$Users$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The exact primary email address of the user to look up.
*/
email?: string;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
}
export interface Params$Resource$Users$Patch extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the user.
*/
userId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$User;
}
export interface Params$Resource$Users$Revokedeviceaccess extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the user.
*/
userId?: string;
}
export interface Params$Resource$Users$Revoketoken extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the user.
*/
userId?: string;
}
export interface Params$Resource$Users$Setavailableproductset extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the user.
*/
userId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$ProductSet;
}
export interface Params$Resource$Users$Update extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the user.
*/
userId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$User;
}
export class Resource$Webapps {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* androidenterprise.webapps.delete
* @desc Deletes an existing web app.
* @alias androidenterprise.webapps.delete
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.webAppId The ID of the web app.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
delete(params?: Params$Resource$Webapps$Delete, options?: MethodOptions): GaxiosPromise<void>;
delete(params: Params$Resource$Webapps$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
delete(params: Params$Resource$Webapps$Delete, callback: BodyResponseCallback<void>): void;
delete(callback: BodyResponseCallback<void>): void;
/**
* androidenterprise.webapps.get
* @desc Gets an existing web app.
* @alias androidenterprise.webapps.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.webAppId The ID of the web app.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Webapps$Get, options?: MethodOptions): GaxiosPromise<Schema$WebApp>;
get(params: Params$Resource$Webapps$Get, options: MethodOptions | BodyResponseCallback<Schema$WebApp>, callback: BodyResponseCallback<Schema$WebApp>): void;
get(params: Params$Resource$Webapps$Get, callback: BodyResponseCallback<Schema$WebApp>): void;
get(callback: BodyResponseCallback<Schema$WebApp>): void;
/**
* androidenterprise.webapps.insert
* @desc Creates a new web app for the enterprise.
* @alias androidenterprise.webapps.insert
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {().WebApp} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
insert(params?: Params$Resource$Webapps$Insert, options?: MethodOptions): GaxiosPromise<Schema$WebApp>;
insert(params: Params$Resource$Webapps$Insert, options: MethodOptions | BodyResponseCallback<Schema$WebApp>, callback: BodyResponseCallback<Schema$WebApp>): void;
insert(params: Params$Resource$Webapps$Insert, callback: BodyResponseCallback<Schema$WebApp>): void;
insert(callback: BodyResponseCallback<Schema$WebApp>): void;
/**
* androidenterprise.webapps.list
* @desc Retrieves the details of all web apps for a given enterprise.
* @alias androidenterprise.webapps.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Webapps$List, options?: MethodOptions): GaxiosPromise<Schema$WebAppsListResponse>;
list(params: Params$Resource$Webapps$List, options: MethodOptions | BodyResponseCallback<Schema$WebAppsListResponse>, callback: BodyResponseCallback<Schema$WebAppsListResponse>): void;
list(params: Params$Resource$Webapps$List, callback: BodyResponseCallback<Schema$WebAppsListResponse>): void;
list(callback: BodyResponseCallback<Schema$WebAppsListResponse>): void;
/**
* androidenterprise.webapps.patch
* @desc Updates an existing web app. This method supports patch semantics.
* @alias androidenterprise.webapps.patch
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.webAppId The ID of the web app.
* @param {().WebApp} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
patch(params?: Params$Resource$Webapps$Patch, options?: MethodOptions): GaxiosPromise<Schema$WebApp>;
patch(params: Params$Resource$Webapps$Patch, options: MethodOptions | BodyResponseCallback<Schema$WebApp>, callback: BodyResponseCallback<Schema$WebApp>): void;
patch(params: Params$Resource$Webapps$Patch, callback: BodyResponseCallback<Schema$WebApp>): void;
patch(callback: BodyResponseCallback<Schema$WebApp>): void;
/**
* androidenterprise.webapps.update
* @desc Updates an existing web app.
* @alias androidenterprise.webapps.update
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.enterpriseId The ID of the enterprise.
* @param {string} params.webAppId The ID of the web app.
* @param {().WebApp} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
update(params?: Params$Resource$Webapps$Update, options?: MethodOptions): GaxiosPromise<Schema$WebApp>;
update(params: Params$Resource$Webapps$Update, options: MethodOptions | BodyResponseCallback<Schema$WebApp>, callback: BodyResponseCallback<Schema$WebApp>): void;
update(params: Params$Resource$Webapps$Update, callback: BodyResponseCallback<Schema$WebApp>): void;
update(callback: BodyResponseCallback<Schema$WebApp>): void;
}
export interface Params$Resource$Webapps$Delete extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the web app.
*/
webAppId?: string;
}
export interface Params$Resource$Webapps$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the web app.
*/
webAppId?: string;
}
export interface Params$Resource$Webapps$Insert extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$WebApp;
}
export interface Params$Resource$Webapps$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
}
export interface Params$Resource$Webapps$Patch extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the web app.
*/
webAppId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$WebApp;
}
export interface Params$Resource$Webapps$Update extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the enterprise.
*/
enterpriseId?: string;
/**
* The ID of the web app.
*/
webAppId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$WebApp;
}
export {};
}