gam7 7.3.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of gam7 might be problematic. Click here for more details.

Files changed (72) hide show
  1. gam/__init__.py +77555 -0
  2. gam/__main__.py +40 -0
  3. gam/atom/__init__.py +1460 -0
  4. gam/atom/auth.py +41 -0
  5. gam/atom/client.py +214 -0
  6. gam/atom/core.py +535 -0
  7. gam/atom/data.py +327 -0
  8. gam/atom/http.py +354 -0
  9. gam/atom/http_core.py +599 -0
  10. gam/atom/http_interface.py +144 -0
  11. gam/atom/mock_http.py +123 -0
  12. gam/atom/mock_http_core.py +313 -0
  13. gam/atom/mock_service.py +235 -0
  14. gam/atom/service.py +723 -0
  15. gam/atom/token_store.py +105 -0
  16. gam/atom/url.py +130 -0
  17. gam/cacerts.pem +1130 -0
  18. gam/cbcm-v1.1beta1.json +593 -0
  19. gam/contactdelegation-v1.json +249 -0
  20. gam/datastudio-v1.json +486 -0
  21. gam/gamlib/__init__.py +17 -0
  22. gam/gamlib/glaction.py +308 -0
  23. gam/gamlib/glapi.py +837 -0
  24. gam/gamlib/glcfg.py +616 -0
  25. gam/gamlib/glclargs.py +1184 -0
  26. gam/gamlib/glentity.py +831 -0
  27. gam/gamlib/glgapi.py +817 -0
  28. gam/gamlib/glgdata.py +98 -0
  29. gam/gamlib/glglobals.py +307 -0
  30. gam/gamlib/glindent.py +46 -0
  31. gam/gamlib/glmsgs.py +547 -0
  32. gam/gamlib/glskus.py +246 -0
  33. gam/gamlib/gluprop.py +279 -0
  34. gam/gamlib/glverlibs.py +33 -0
  35. gam/gamlib/yubikey.py +202 -0
  36. gam/gdata/__init__.py +825 -0
  37. gam/gdata/alt/__init__.py +20 -0
  38. gam/gdata/alt/app_engine.py +101 -0
  39. gam/gdata/alt/appengine.py +321 -0
  40. gam/gdata/apps/__init__.py +526 -0
  41. gam/gdata/apps/audit/__init__.py +1 -0
  42. gam/gdata/apps/audit/service.py +278 -0
  43. gam/gdata/apps/contacts/__init__.py +874 -0
  44. gam/gdata/apps/contacts/service.py +355 -0
  45. gam/gdata/apps/service.py +544 -0
  46. gam/gdata/apps/sites/__init__.py +283 -0
  47. gam/gdata/apps/sites/service.py +246 -0
  48. gam/gdata/service.py +1714 -0
  49. gam/gdata/urlfetch.py +247 -0
  50. gam/googleapiclient/__init__.py +27 -0
  51. gam/googleapiclient/_auth.py +167 -0
  52. gam/googleapiclient/_helpers.py +207 -0
  53. gam/googleapiclient/channel.py +315 -0
  54. gam/googleapiclient/discovery.py +1662 -0
  55. gam/googleapiclient/discovery_cache/__init__.py +78 -0
  56. gam/googleapiclient/discovery_cache/appengine_memcache.py +55 -0
  57. gam/googleapiclient/discovery_cache/base.py +46 -0
  58. gam/googleapiclient/discovery_cache/file_cache.py +145 -0
  59. gam/googleapiclient/errors.py +197 -0
  60. gam/googleapiclient/http.py +1962 -0
  61. gam/googleapiclient/mimeparse.py +183 -0
  62. gam/googleapiclient/model.py +429 -0
  63. gam/googleapiclient/schema.py +317 -0
  64. gam/googleapiclient/version.py +15 -0
  65. gam/iso8601/__init__.py +28 -0
  66. gam/iso8601/iso8601.py +160 -0
  67. gam/serviceaccountlookup-v1.json +141 -0
  68. gam/six.py +982 -0
  69. gam7-7.3.4.dist-info/METADATA +69 -0
  70. gam7-7.3.4.dist-info/RECORD +72 -0
  71. gam7-7.3.4.dist-info/WHEEL +4 -0
  72. gam7-7.3.4.dist-info/licenses/LICENSE +201 -0
@@ -0,0 +1,593 @@
1
+ {
2
+ "auth": {
3
+ "oauth2": {
4
+ "scopes": {
5
+ "https://www.googleapis.com/auth/admin.directory.device.chromebrowsers": {
6
+ "description": "View and manage your Chrome browsers registered with Cloud Management"
7
+ },
8
+ "https://www.googleapis.com/auth/admin.directory.device.chromebrowsers.readonly": {
9
+ "description": "View your Chrome browsers registered with Cloud Management"
10
+ }
11
+ }
12
+ }
13
+ },
14
+ "basePath": "",
15
+ "baseUrl": "https://admin.googleapis.com/admin/directory/v1.1beta1/customer/",
16
+ "batchPath": "batch",
17
+ "canonicalName": "cbcm",
18
+ "discoveryVersion": "v1",
19
+ "documentationLink": "https://support.google.com/chrome/a/answer/9681204",
20
+ "fullyEncodeReservedExpansion": true,
21
+ "icons": {
22
+ "x16": "http://www.google.com/images/icons/product/search-16.gif",
23
+ "x32": "http://www.google.com/images/icons/product/search-32.gif"
24
+ },
25
+ "id": "cbcm:v1.1beta1",
26
+ "kind": "discovery#restDescription",
27
+ "mtlsRootUrl": "https://admin.mtls.googleapis.com/",
28
+ "name": "cbcm",
29
+ "ownerDomain": "google.com",
30
+ "ownerName": "Jay Lee",
31
+ "packagePath": "cbcm",
32
+ "parameters": {
33
+ "$.xgafv": {
34
+ "description": "V1 error format.",
35
+ "enum": [
36
+ "1",
37
+ "2"
38
+ ],
39
+ "enumDescriptions": [
40
+ "v1 error format",
41
+ "v2 error format"
42
+ ],
43
+ "location": "query",
44
+ "type": "string"
45
+ },
46
+ "access_token": {
47
+ "description": "OAuth access token.",
48
+ "location": "query",
49
+ "type": "string"
50
+ },
51
+ "alt": {
52
+ "default": "json",
53
+ "description": "Data format for response.",
54
+ "enum": [
55
+ "json",
56
+ "media",
57
+ "proto"
58
+ ],
59
+ "enumDescriptions": [
60
+ "Responses with Content-Type of application/json",
61
+ "Media download with context-dependent Content-Type",
62
+ "Responses with Content-Type of application/x-protobuf"
63
+ ],
64
+ "location": "query",
65
+ "type": "string"
66
+ },
67
+ "callback": {
68
+ "description": "JSONP",
69
+ "location": "query",
70
+ "type": "string"
71
+ },
72
+ "fields": {
73
+ "description": "Selector specifying which fields to include in a partial response.",
74
+ "location": "query",
75
+ "type": "string"
76
+ },
77
+ "key": {
78
+ "description": "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.",
79
+ "location": "query",
80
+ "type": "string"
81
+ },
82
+ "oauth_token": {
83
+ "description": "OAuth 2.0 token for the current user.",
84
+ "location": "query",
85
+ "type": "string"
86
+ },
87
+ "prettyPrint": {
88
+ "default": "true",
89
+ "description": "Returns response with indentations and line breaks.",
90
+ "location": "query",
91
+ "type": "boolean"
92
+ },
93
+ "quotaUser": {
94
+ "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
95
+ "location": "query",
96
+ "type": "string"
97
+ },
98
+ "uploadType": {
99
+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
100
+ "location": "query",
101
+ "type": "string"
102
+ },
103
+ "upload_protocol": {
104
+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
105
+ "location": "query",
106
+ "type": "string"
107
+ }
108
+ },
109
+ "protocol": "rest",
110
+ "resources": {
111
+ "chromebrowsers": {
112
+ "methods": {
113
+ "delete": {
114
+ "description": "Deletes a browser.",
115
+ "flatPath": "{customer}/devices/chromebrowsers/{deviceId}",
116
+ "httpMethod": "DELETE",
117
+ "id": "cbcm.chromebrowsers.delete",
118
+ "parameterOrder": [
119
+ "customer",
120
+ "deviceId"
121
+ ],
122
+ "parameters": {
123
+ "customer": {
124
+ "description": "Immutable ID of the G Suite account.",
125
+ "location": "path",
126
+ "required": true,
127
+ "type": "string"
128
+ },
129
+ "deviceId": {
130
+ "description": "Immutable ID of the browser.",
131
+ "location": "path",
132
+ "required": true,
133
+ "type": "string"
134
+ }
135
+ },
136
+ "path": "{customer}/devices/chromebrowsers/{deviceId}",
137
+ "scopes": [
138
+ "https://www.googleapis.com/auth/admin.directory.device.chromebrowsers"
139
+ ]
140
+ },
141
+ "get": {
142
+ "description": "Retrieves a browser.",
143
+ "flatPath": "{customer}/devices/chromebrowsers/{deviceId}",
144
+ "httpMethod": "GET",
145
+ "id": "cbcm.chromebrowsers.get",
146
+ "parameterOrder": [
147
+ "customer",
148
+ "deviceId"
149
+ ],
150
+ "parameters": {
151
+ "customer": {
152
+ "description": "Immutable ID of the G Suite account.",
153
+ "location": "path",
154
+ "required": true,
155
+ "type": "string"
156
+ },
157
+ "deviceId": {
158
+ "description": "Immutable ID of the browser.",
159
+ "location": "path",
160
+ "required": true,
161
+ "type": "string"
162
+ },
163
+ "projection": {
164
+ "description": "Restrict information returned to a set of selected fields. FULL or BASIC.",
165
+ "location": "query",
166
+ "type": "string"
167
+ }
168
+ },
169
+ "path": "{customer}/devices/chromebrowsers/{deviceId}",
170
+ "response": {
171
+ "$ref": "ChromeBrowser"
172
+ },
173
+ "scopes": [
174
+ "https://www.googleapis.com/auth/admin.directory.device.chromebrowsers",
175
+ "https://www.googleapis.com/auth/admin.directory.device.chromebrowsers.readonly"
176
+ ]
177
+ },
178
+ "list": {
179
+ "description": "Retrieves a paginated list of all the browsers in a domain.",
180
+ "flatPath": "{customer}/devices/chromebrowsers",
181
+ "httpMethod": "GET",
182
+ "id": "cbcm.chromebrowsers.list",
183
+ "parameterOrder": [
184
+ "customer"
185
+ ],
186
+ "parameters": {
187
+ "customer": {
188
+ "description": "Immutable ID of the G Suite account.",
189
+ "location": "path",
190
+ "required": true,
191
+ "type": "string"
192
+ },
193
+ "maxResults": {
194
+ "description": "Maximum number of results to return.",
195
+ "format": "int32",
196
+ "location": "query",
197
+ "maximum": "100",
198
+ "minimum": "1",
199
+ "type": "integer"
200
+ },
201
+ "orderBy": {
202
+ "description": "property to use for sorting results.",
203
+ "location": "query",
204
+ "type": "string"
205
+ },
206
+ "orgUnitPath": {
207
+ "description": "The full path of the organizational unit or its unique ID.",
208
+ "location": "query",
209
+ "type": "string"
210
+ },
211
+ "pageToken": {
212
+ "description": "Token to specify the next page in the list.",
213
+ "location": "query",
214
+ "type": "string"
215
+ },
216
+ "projection": {
217
+ "description": "Restrict information returned to a set of selected fields. FULL or BASIC.",
218
+ "location": "query",
219
+ "type": "string"
220
+ },
221
+ "query": {
222
+ "description": "Search string using the list page query language.",
223
+ "location": "query",
224
+ "type": "string"
225
+ },
226
+ "sortOrder": {
227
+ "description": "Whether to return results in ascending or descending order. Must be used with the orderBy parameter.",
228
+ "location": "query",
229
+ "type": "string"
230
+ }
231
+ },
232
+ "path": "{customer}/devices/chromebrowsers",
233
+ "response": {
234
+ "$ref": "ChromeBrowsers"
235
+ },
236
+ "scopes": [
237
+ "https://www.googleapis.com/auth/admin.directory.device.chromebrowsers",
238
+ "https://www.googleapis.com/auth/admin.directory.device.chromebrowsers.readonly"
239
+ ]
240
+ },
241
+ "moveChromeBrowsersToOu": {
242
+ "description": "Move Chrome Browsers Device between Organization Units",
243
+ "flatPath": "{customer}/devices/chromebrowsers/moveChromeBrowsersToOu",
244
+ "httpMethod": "POST",
245
+ "id": "cbcm.chromebrowsers.moveChromeBrowsersToOu",
246
+ "parameterOrder": [
247
+ "customer"
248
+ ],
249
+ "parameters": {
250
+ "customer": {
251
+ "description": "Immutable ID of the G Suite account.",
252
+ "location": "path",
253
+ "required": true,
254
+ "type": "string"
255
+ }
256
+ },
257
+ "path": "{customer}/devices/chromebrowsers/moveChromeBrowsersToOu",
258
+ "request": {
259
+ "$ref": "MoveChromeBrowsersRequest"
260
+ },
261
+ "scopes": [
262
+ "https://www.googleapis.com/auth/admin.directory.device.chromebrowsers"
263
+ ]
264
+ },
265
+ "update": {
266
+ "description": "Updates a browser.",
267
+ "flatPath": "{customer}/devices/chromebrowsers/{deviceId}",
268
+ "httpMethod": "PUT",
269
+ "id": "cbcm.chromebrowsers.update",
270
+ "parameterOrder": [
271
+ "customer",
272
+ "deviceId"
273
+ ],
274
+ "parameters": {
275
+ "customer": {
276
+ "description": "Immutable ID of the G Suite account.",
277
+ "location": "path",
278
+ "required": true,
279
+ "type": "string"
280
+ },
281
+ "deviceId": {
282
+ "description": "Immutable ID of the browser.",
283
+ "location": "path",
284
+ "required": true,
285
+ "type": "string"
286
+ },
287
+ "projection": {
288
+ "description": "BASIC or FULL",
289
+ "location": "query",
290
+ "type": "string"
291
+ }
292
+ },
293
+ "path": "{customer}/devices/chromebrowsers/{deviceId}",
294
+ "request": {
295
+ "$ref": "ChromeBrowser"
296
+ },
297
+ "response": {
298
+ "$ref": "ChromeBrowser"
299
+ },
300
+ "scopes": [
301
+ "https://www.googleapis.com/auth/admin.directory.device.chromebrowsers"
302
+ ]
303
+ }
304
+ }
305
+ },
306
+ "enrollmentTokens": {
307
+ "methods": {
308
+ "list": {
309
+ "description": "Retrieves a paginated list of all the browser entollment tokens in a domain.",
310
+ "flatPath": "{customer}/chrome/enrollmentTokens",
311
+ "httpMethod": "GET",
312
+ "id": "cbcm.enrollmentTokens.list",
313
+ "parameterOrder": [
314
+ "customer"
315
+ ],
316
+ "parameters": {
317
+ "customer": {
318
+ "description": "Immutable ID of the G Suite account.",
319
+ "location": "path",
320
+ "required": true,
321
+ "type": "string"
322
+ },
323
+ "pageSize": {
324
+ "description": "Maximum number of results to return.",
325
+ "format": "int32",
326
+ "location": "query",
327
+ "maximum": "100",
328
+ "minimum": "1",
329
+ "type": "integer"
330
+ },
331
+ "orgUnitPath": {
332
+ "description": "The full path of the organizational unit or its unique ID.",
333
+ "location": "query",
334
+ "type": "string"
335
+ },
336
+ "pageToken": {
337
+ "description": "Token to specify the next page in the list.",
338
+ "location": "query",
339
+ "type": "string"
340
+ },
341
+ "query": {
342
+ "description": "Search string using the list page query language.",
343
+ "location": "query",
344
+ "type": "string"
345
+ }
346
+ },
347
+ "path": "{customer}/chrome/enrollmentTokens",
348
+ "response": {
349
+ "$ref": "EnrollmentTokens"
350
+ },
351
+ "scopes": [
352
+ "https://www.googleapis.com/auth/admin.directory.device.chromebrowsers",
353
+ "https://www.googleapis.com/auth/admin.directory.device.chromebrowsers.readonly"
354
+ ]
355
+ },
356
+ "create": {
357
+ "description": "Creates a browser enrollment token in a domain.",
358
+ "flatPath": "{customer}/chrome/enrollmentTokens",
359
+ "httpMethod": "POST",
360
+ "id": "cbcm.enrollmentTokens.create",
361
+ "parameterOrder": [
362
+ "customer"
363
+ ],
364
+ "parameters": {
365
+ "customer": {
366
+ "description": "Immutable ID of the G Suite account.",
367
+ "location": "path",
368
+ "required": true,
369
+ "type": "string"
370
+ }
371
+ },
372
+ "path": "{customer}/chrome/enrollmentTokens",
373
+ "request": {
374
+ "$ref": "CreateEnrollmentTokenRequest"
375
+ },
376
+ "response": {
377
+ "$ref": "EnrollmentToken"
378
+ },
379
+ "scopes": [
380
+ "https://www.googleapis.com/auth/admin.directory.device.chromebrowsers"
381
+ ]
382
+ },
383
+ "revoke": {
384
+ "description": "Revokes a browser enrollment token in a domain.",
385
+ "flatPath": "{customer}/chrome/enrollmentTokens/{tokenPermanentId}:revoke",
386
+ "httpMethod": "POST",
387
+ "id": "cbcm.enrollmentTokens.revoke",
388
+ "parameterOrder": [
389
+ "customer",
390
+ "tokenPermanentId"
391
+ ],
392
+ "parameters": {
393
+ "customer": {
394
+ "description": "Immutable ID of the G Suite account.",
395
+ "location": "path",
396
+ "required": true,
397
+ "type": "string"
398
+ },
399
+ "tokenPermanentId": {
400
+ "description": "Unique identifier for an enrollment token.",
401
+ "location": "path",
402
+ "required": true,
403
+ "type": "string"
404
+ }
405
+ },
406
+ "path": "{customer}/chrome/enrollmentTokens/{tokenPermanentId}:revoke",
407
+ "scopes": [
408
+ "https://www.googleapis.com/auth/admin.directory.device.chromebrowsers"
409
+ ]
410
+ }
411
+ }
412
+ }
413
+ },
414
+ "revision": "20201203",
415
+ "rootUrl": "https://admin.googleapis.com/admin/directory/v1.1beta1/customer/",
416
+ "schemas": {
417
+ "ChromeBrowser": {
418
+ "id": "ChromeBrowser",
419
+ "properties": {
420
+ "annotatedAssetId": {
421
+ "description": "Asset identifier as annotated by the administrator or specified during enrollment.",
422
+ "type": "string"
423
+ },
424
+ "annotatedLocation": {
425
+ "description": "Address or location of the device as annotated by the administrator.",
426
+ "type": "string"
427
+ },
428
+ "annotatedNotes": {
429
+ "description": "Notes about this device as annotated by the administrator",
430
+ "type": "string"
431
+ },
432
+ "annotatedUser": {
433
+ "description": "User of the device as annotated by the administrator.",
434
+ "type": "string"
435
+ },
436
+ "deviceId": {
437
+ "annotations": {
438
+ "required": [
439
+ "cbcm.chromebrowsers.update"
440
+ ]
441
+ },
442
+ "description": "The unique ID of the device.",
443
+ "type": "string"
444
+ }
445
+ },
446
+ "type": "object"
447
+ },
448
+ "ChromeBrowsers": {
449
+ "id": "ChromeBrowsers",
450
+ "properties": {
451
+ "browsers": {
452
+ "description": "List of Chrome browser objects.",
453
+ "items": {
454
+ "$ref": "ChromeBrowser"
455
+ },
456
+ "type": "array"
457
+ },
458
+ "etag": {
459
+ "description": "ETag of the resource.",
460
+ "type": "string"
461
+ },
462
+ "kind": {
463
+ "default": "admin#directory#chromeosdevices",
464
+ "description": "Kind of resource this is.",
465
+ "type": "string"
466
+ },
467
+ "nextPageToken": {
468
+ "description": "Token used to access the next page of this result. To access the next page, use this token's value in the `pageToken` query string of this request.",
469
+ "type": "string"
470
+ }
471
+ },
472
+ "type": "object"
473
+ },
474
+ "EnrollmentToken": {
475
+ "id": "EnrollmentToken",
476
+ "properties": {
477
+ "kind": {
478
+ "default": "admin#directory#chromeEnrollmentToken",
479
+ "description": "Kind of resource this is.",
480
+ "type": "string"
481
+ },
482
+ "tokenId": {
483
+ "description": "Enrollment Token ID.",
484
+ "type": "string"
485
+ },
486
+ "tokenPermanentId": {
487
+ "description": "Enrollment Token Permanent ID.",
488
+ "type": "string"
489
+ },
490
+ "customerId": {
491
+ "description": "Immutable ID of the G Suite account.",
492
+ "type": "string"
493
+ },
494
+ "orgUnitPath": {
495
+ "description": "The full path of the organizational unit or its unique ID.",
496
+ "type": "string"
497
+ },
498
+ "creatorId": {
499
+ "description": "Creator ID.",
500
+ "type": "string"
501
+ },
502
+ "createTime": {
503
+ "description": "Creation Time.",
504
+ "type": "string"
505
+ },
506
+ "revokerId": {
507
+ "description": "Revoker ID.",
508
+ "type": "string"
509
+ },
510
+ "revokeTime": {
511
+ "description": "Revoke Time",
512
+ "type": "string"
513
+ }
514
+ },
515
+ "type": "object"
516
+ },
517
+ "EnrollmentTokens": {
518
+ "id": "EnrollmentTokens",
519
+ "properties": {
520
+ "chrome_enrollment_tokens": {
521
+ "description": "List of Chrome browser enrollment token objects.",
522
+ "items": {
523
+ "$ref": "EnrollmentToken"
524
+ },
525
+ "type": "array"
526
+ },
527
+ "kind": {
528
+ "default": "admin#directory#chromeEnrollmentTokens",
529
+ "description": "Kind of resource this is.",
530
+ "type": "string"
531
+ },
532
+ "nextPageToken": {
533
+ "description": "Token used to access the next page of this result. To access the next page, use this token's value in the `pageToken` query string of this request.",
534
+ "type": "string"
535
+ }
536
+ },
537
+ "type": "object"
538
+ },
539
+ "CreateEnrollmentTokenRequest": {
540
+ "id": "CreateEnrollmentTokenRequest",
541
+ "properties": {
542
+ "org_unit_path": {
543
+ "description": "The full path of the organizational unit or its unique ID.",
544
+ "type": "string"
545
+ },
546
+ "expire_time": {
547
+ "description": "Expiration Time.",
548
+ "type": "string"
549
+ },
550
+ "token_type": {
551
+ "id": "token_type",
552
+ "annotations": {
553
+ "required": [
554
+ "cbcm.enrollmentTokens.create"
555
+ ]
556
+ },
557
+ "description": "CHROME_BROWSER.",
558
+ "type": "string"
559
+ }
560
+ }
561
+ },
562
+ "MoveChromeBrowsersRequest": {
563
+ "id": "MoveChromeBrowsersRequest",
564
+ "type": "object",
565
+ "properties": {
566
+ "org_unit_path": {
567
+ "annotations": {
568
+ "required": [
569
+ "cbcm.chromebrowsers.moveChromeBrowsersToOu"
570
+ ]
571
+ },
572
+ "description": "Destination organization unit to move devices to. Full path of the organizational unit or its ID prefixed with id:",
573
+ "type": "string"
574
+ },
575
+ "resource_ids": {
576
+ "annotations": {
577
+ "required": [
578
+ "cbcm.chromebrowsers.moveChromeBrowsersToOu"
579
+ ]
580
+ },
581
+ "description": "List of unique device IDs of Chrome Browser Devices to move. A maximum of 600 browsers may be moved per request.",
582
+ "type": "array",
583
+ "items": {
584
+ "type": "string"
585
+ }
586
+ }
587
+ }
588
+ }
589
+ },
590
+ "servicePath": "",
591
+ "title": "Admin SDK API",
592
+ "version": "cbcm_v1.1beta1"
593
+ }