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
gam/datastudio-v1.json ADDED
@@ -0,0 +1,486 @@
1
+ {
2
+ "basePath": "",
3
+ "discoveryVersion": "v1",
4
+ "documentationLink": "https://support.google.com/datastudio",
5
+ "canonicalName": "Data Studio",
6
+ "id": "datastudio:v1",
7
+ "ownerName": "Google",
8
+ "description": "Allows programmatic viewing and editing of Data Studio assets.",
9
+ "rootUrl": "https://datastudio.googleapis.com/",
10
+ "ownerDomain": "google.com",
11
+ "mtlsRootUrl": "https://datastudio.mtls.googleapis.com/",
12
+ "batchPath": "batch",
13
+ "version_module": true,
14
+ "version": "v1",
15
+ "schemas": {
16
+ "Asset": {
17
+ "id": "Asset",
18
+ "properties": {
19
+ "title": {
20
+ "description": "The title of the asset.",
21
+ "type": "string"
22
+ },
23
+ "createTime": {
24
+ "format": "google-datetime",
25
+ "description": "Date the asset was created.",
26
+ "type": "string"
27
+ },
28
+ "lastViewByMeTime": {
29
+ "type": "string",
30
+ "description": "Date the asset was last viewed by me.",
31
+ "format": "google-datetime"
32
+ },
33
+ "owner": {
34
+ "type": "string",
35
+ "description": "The owner of the asset."
36
+ },
37
+ "name": {
38
+ "type": "string",
39
+ "description": "The name of the asset."
40
+ },
41
+ "trashed": {
42
+ "type": "boolean",
43
+ "description": "Value indicating if the asset is in the trash."
44
+ },
45
+ "updateTime": {
46
+ "format": "google-datetime",
47
+ "description": "Date the asset was last modified.",
48
+ "type": "string"
49
+ },
50
+ "updateByMeTime": {
51
+ "description": "Date the asset was last modified by me.",
52
+ "type": "string",
53
+ "format": "google-datetime"
54
+ },
55
+ "assetType": {
56
+ "enumDescriptions": [
57
+ "Asset type not specified.",
58
+ "A report asset.",
59
+ "A data Source asset."
60
+ ],
61
+ "enum": [
62
+ "ASSET_TYPE_UNSPECIFIED",
63
+ "REPORT",
64
+ "DATA_SOURCE"
65
+ ],
66
+ "description": "The type of the asset.",
67
+ "type": "string"
68
+ }
69
+ },
70
+ "description": "A Data Studio asset.",
71
+ "type": "object"
72
+ },
73
+ "SearchAssetsResponse": {
74
+ "id": "SearchAssetsResponse",
75
+ "properties": {
76
+ "assets": {
77
+ "items": {
78
+ "$ref": "Asset"
79
+ },
80
+ "type": "array",
81
+ "description": "The list of assets."
82
+ },
83
+ "nextPageToken": {
84
+ "type": "string",
85
+ "description": "A token to retrieve next page of results. Pass this value in the SearchAssetsRequest.page_token field in the subsequent call to `SearchAssets` method to retrieve the next page of results."
86
+ }
87
+ },
88
+ "description": "Response message for DataStudioService.SearchAssets",
89
+ "type": "object"
90
+ },
91
+ "UpdatePermissionsRequest": {
92
+ "description": "Request message for DataStudioService.UpdatePermissions",
93
+ "properties": {
94
+ "updateMask": {
95
+ "description": "The list of fields to be updated. Currently not supported.",
96
+ "type": "string",
97
+ "format": "google-fieldmask"
98
+ },
99
+ "permissions": {
100
+ "description": "The permissions object to update.",
101
+ "$ref": "Permissions"
102
+ }
103
+ },
104
+ "id": "UpdatePermissionsRequest",
105
+ "type": "object"
106
+ },
107
+ "AddMembersRequest": {
108
+ "properties": {
109
+ "members": {
110
+ "type": "array",
111
+ "items": {
112
+ "type": "string"
113
+ },
114
+ "description": "Required. The members to add to the role. The format of a member is one of - user:alice@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-app@appspot.gserviceaccount.com"
115
+ },
116
+ "role": {
117
+ "type": "string",
118
+ "enumDescriptions": [
119
+ "Role not specified.",
120
+ "A viewer.",
121
+ "An editor.",
122
+ "An owner.",
123
+ "Link shared viewer.",
124
+ "Link shared editor."
125
+ ],
126
+ "enum": [
127
+ "ROLE_UNSPECIFIED",
128
+ "VIEWER",
129
+ "EDITOR",
130
+ "OWNER",
131
+ "LINK_VIEWER",
132
+ "LINK_EDITOR"
133
+ ],
134
+ "description": "Required. The role to add members to."
135
+ }
136
+ },
137
+ "type": "object",
138
+ "id": "AddMembersRequest",
139
+ "description": "Request message for DataStudioService.AddMembers"
140
+ },
141
+ "Permissions": {
142
+ "type": "object",
143
+ "id": "Permissions",
144
+ "description": "A Data Studio asset's Permissions.",
145
+ "properties": {
146
+ "permissions": {
147
+ "description": "A map from a Role to a list of members. Role is a string representation of the Role enum. One of: - OWNER - EDITOR - VIEWER",
148
+ "additionalProperties": {
149
+ "$ref": "Members"
150
+ },
151
+ "type": "object"
152
+ },
153
+ "etag": {
154
+ "format": "byte",
155
+ "description": "etag to detect and fail concurrent modifications",
156
+ "type": "string"
157
+ }
158
+ }
159
+ },
160
+ "RevokeAllPermissionsRequest": {
161
+ "description": "Request message for DataStudioService.RevokeAllPermissions",
162
+ "id": "RevokeAllPermissionsRequest",
163
+ "type": "object",
164
+ "properties": {
165
+ "members": {
166
+ "description": "Required. The members that are having their access revoked. The format of a member is one of - user:alice@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-app@appspot.gserviceaccount.com",
167
+ "items": {
168
+ "type": "string"
169
+ },
170
+ "type": "array"
171
+ }
172
+ }
173
+ },
174
+ "Members": {
175
+ "description": "A wrapper message for a list of members.",
176
+ "properties": {
177
+ "members": {
178
+ "description": "Format of string is one of - user:alice@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-app@appspot.gserviceaccount.com",
179
+ "items": {
180
+ "type": "string"
181
+ },
182
+ "type": "array"
183
+ }
184
+ },
185
+ "type": "object",
186
+ "id": "Members"
187
+ }
188
+ },
189
+ "name": "datastudio",
190
+ "protocol": "rest",
191
+ "baseUrl": "https://datastudio.googleapis.com/",
192
+ "title": "Data Studio API",
193
+ "revision": "20210412",
194
+ "fullyEncodeReservedExpansion": true,
195
+ "icons": {
196
+ "x32": "http://www.google.com/images/icons/product/search-32.gif",
197
+ "x16": "http://www.google.com/images/icons/product/search-16.gif"
198
+ },
199
+ "parameters": {
200
+ "quotaUser": {
201
+ "location": "query",
202
+ "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.",
203
+ "type": "string"
204
+ },
205
+ "prettyPrint": {
206
+ "location": "query",
207
+ "type": "boolean",
208
+ "description": "Returns response with indentations and line breaks.",
209
+ "default": "true"
210
+ },
211
+ "callback": {
212
+ "location": "query",
213
+ "type": "string",
214
+ "description": "JSONP"
215
+ },
216
+ "uploadType": {
217
+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
218
+ "type": "string",
219
+ "location": "query"
220
+ },
221
+ "upload_protocol": {
222
+ "type": "string",
223
+ "location": "query",
224
+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\")."
225
+ },
226
+ "$.xgafv": {
227
+ "enumDescriptions": [
228
+ "v1 error format",
229
+ "v2 error format"
230
+ ],
231
+ "description": "V1 error format.",
232
+ "location": "query",
233
+ "type": "string",
234
+ "enum": [
235
+ "1",
236
+ "2"
237
+ ]
238
+ },
239
+ "oauth_token": {
240
+ "type": "string",
241
+ "location": "query",
242
+ "description": "OAuth 2.0 token for the current user."
243
+ },
244
+ "alt": {
245
+ "type": "string",
246
+ "enum": [
247
+ "json",
248
+ "media",
249
+ "proto"
250
+ ],
251
+ "location": "query",
252
+ "description": "Data format for response.",
253
+ "enumDescriptions": [
254
+ "Responses with Content-Type of application/json",
255
+ "Media download with context-dependent Content-Type",
256
+ "Responses with Content-Type of application/x-protobuf"
257
+ ],
258
+ "default": "json"
259
+ },
260
+ "fields": {
261
+ "description": "Selector specifying which fields to include in a partial response.",
262
+ "location": "query",
263
+ "type": "string"
264
+ },
265
+ "access_token": {
266
+ "type": "string",
267
+ "description": "OAuth access token.",
268
+ "location": "query"
269
+ },
270
+ "key": {
271
+ "type": "string",
272
+ "location": "query",
273
+ "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."
274
+ }
275
+ },
276
+ "servicePath": "",
277
+ "kind": "discovery#restDescription",
278
+ "resources": {
279
+ "assets": {
280
+ "methods": {
281
+ "getPermissions": {
282
+ "parameters": {
283
+ "name": {
284
+ "type": "string",
285
+ "location": "path",
286
+ "description": "Required. The name of the asset.",
287
+ "required": true
288
+ },
289
+ "role": {
290
+ "enumDescriptions": [
291
+ "Role not specified.",
292
+ "A viewer.",
293
+ "An editor.",
294
+ "An owner.",
295
+ "Link shared viewer.",
296
+ "Link shared editor."
297
+ ],
298
+ "type": "string",
299
+ "location": "query",
300
+ "description": "The role of the permssion.",
301
+ "enum": [
302
+ "ROLE_UNSPECIFIED",
303
+ "VIEWER",
304
+ "EDITOR",
305
+ "OWNER",
306
+ "LINK_VIEWER",
307
+ "LINK_EDITOR"
308
+ ]
309
+ }
310
+ },
311
+ "id": "datastudio.assets.getPermissions",
312
+ "response": {
313
+ "$ref": "Permissions"
314
+ },
315
+ "flatPath": "v1/assets/{name}/permissions",
316
+ "path": "v1/assets/{name}/permissions",
317
+ "description": "Gets the asset's permission for a given role.",
318
+ "parameterOrder": [
319
+ "name"
320
+ ],
321
+ "httpMethod": "GET"
322
+ },
323
+ "updatePermissions": {
324
+ "id": "datastudio.assets.updatePermissions",
325
+ "parameterOrder": [
326
+ "name"
327
+ ],
328
+ "flatPath": "v1/assets/{name}/permissions",
329
+ "description": "Updates a permission.",
330
+ "request": {
331
+ "$ref": "UpdatePermissionsRequest"
332
+ },
333
+ "path": "v1/assets/{name}/permissions",
334
+ "parameters": {
335
+ "name": {
336
+ "description": "Required. The name of the asset.",
337
+ "location": "path",
338
+ "type": "string",
339
+ "required": true
340
+ }
341
+ },
342
+ "response": {
343
+ "$ref": "Permissions"
344
+ },
345
+ "httpMethod": "PATCH"
346
+ },
347
+ "get": {
348
+ "path": "v1/{+name}",
349
+ "id": "datastudio.assets.get",
350
+ "parameterOrder": [
351
+ "name"
352
+ ],
353
+ "description": "Gets the asset by name.",
354
+ "parameters": {
355
+ "name": {
356
+ "description": "Required. The name of the asset. Format: assets/{asset}",
357
+ "location": "path",
358
+ "required": true,
359
+ "pattern": "^assets/[^/]+$",
360
+ "type": "string"
361
+ }
362
+ },
363
+ "flatPath": "v1/assets/{assetsId}",
364
+ "response": {
365
+ "$ref": "Asset"
366
+ },
367
+ "httpMethod": "GET"
368
+ },
369
+ "search": {
370
+ "response": {
371
+ "$ref": "SearchAssetsResponse"
372
+ },
373
+ "path": "v1/assets:search",
374
+ "parameters": {
375
+ "pageToken": {
376
+ "type": "string",
377
+ "location": "query",
378
+ "description": "A token identifying a page of results the server should return. Use the value of SearchAssetsResponse.next_page_token returned from the previous call to `SearchAssets` method."
379
+ },
380
+ "assetTypes": {
381
+ "type": "string",
382
+ "repeated": true,
383
+ "description": "Exactly one AssetType must be specified.",
384
+ "enumDescriptions": [
385
+ "Asset type not specified.",
386
+ "A report asset.",
387
+ "A data Source asset."
388
+ ],
389
+ "location": "query",
390
+ "enum": [
391
+ "ASSET_TYPE_UNSPECIFIED",
392
+ "REPORT",
393
+ "DATA_SOURCE"
394
+ ]
395
+ },
396
+ "title": {
397
+ "description": "The title of assets to include. Not an exact match, works the same as search from the UI.",
398
+ "location": "query",
399
+ "type": "string"
400
+ },
401
+ "owner": {
402
+ "type": "string",
403
+ "location": "query",
404
+ "description": "The email of the owner of the asset."
405
+ },
406
+ "pageSize": {
407
+ "description": "Requested page size. If unspecified, server will pick an appropriate default.",
408
+ "location": "query",
409
+ "type": "integer",
410
+ "format": "int32"
411
+ },
412
+ "orderBy": {
413
+ "location": "query",
414
+ "description": "How the results should be ordered. Valid options are: - title",
415
+ "type": "string"
416
+ },
417
+ "includeTrashed": {
418
+ "location": "query",
419
+ "type": "boolean",
420
+ "description": "Value indicating if assets in trash should be included."
421
+ }
422
+ },
423
+ "flatPath": "v1/assets:search",
424
+ "httpMethod": "GET",
425
+ "description": "Searches assets.",
426
+ "id": "datastudio.assets.search",
427
+ "parameterOrder": []
428
+ }
429
+ },
430
+ "resources": {
431
+ "permissions": {
432
+ "methods": {
433
+ "revokeAllPermissions": {
434
+ "path": "v1/assets/{name}/permissions:revokeAllPermissions",
435
+ "response": {
436
+ "$ref": "Permissions"
437
+ },
438
+ "flatPath": "v1/assets/{name}/permissions:revokeAllPermissions",
439
+ "id": "datastudio.assets.permissions.revokeAllPermissions",
440
+ "description": "Revokes one or more members' access to an asset.",
441
+ "parameters": {
442
+ "name": {
443
+ "required": true,
444
+ "type": "string",
445
+ "location": "path",
446
+ "description": "Required. The name of the asset."
447
+ }
448
+ },
449
+ "parameterOrder": [
450
+ "name"
451
+ ],
452
+ "httpMethod": "POST",
453
+ "request": {
454
+ "$ref": "RevokeAllPermissionsRequest"
455
+ }
456
+ },
457
+ "addMembers": {
458
+ "path": "v1/assets/{name}/permissions:addMembers",
459
+ "parameters": {
460
+ "name": {
461
+ "required": true,
462
+ "location": "path",
463
+ "type": "string",
464
+ "description": "Required. The name of the asset."
465
+ }
466
+ },
467
+ "httpMethod": "POST",
468
+ "parameterOrder": [
469
+ "name"
470
+ ],
471
+ "response": {
472
+ "$ref": "Permissions"
473
+ },
474
+ "id": "datastudio.assets.permissions.addMembers",
475
+ "request": {
476
+ "$ref": "AddMembersRequest"
477
+ },
478
+ "description": "Adds one or more members to a role.",
479
+ "flatPath": "v1/assets/{name}/permissions:addMembers"
480
+ }
481
+ }
482
+ }
483
+ }
484
+ }
485
+ }
486
+ }
gam/gamlib/__init__.py ADDED
@@ -0,0 +1,17 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ # Copyright (C) 2023 Ross Scroggs All Rights Reserved.
4
+ #
5
+ # All Rights Reserved.
6
+ #
7
+ # Licensed under the Apache License, Version 2.0 (the "License"); you may
8
+ # not use this file except in compliance with the License. You may obtain
9
+ # a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing, software
14
+ # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15
+ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16
+ # License for the specific language governing permissions and limitations
17
+ # under the License.