mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
GAM 6.19
This commit is contained in:
@@ -849,7 +849,9 @@ def _getSvcAcctData():
|
|||||||
controlflow.system_error_exit(6, None)
|
controlflow.system_error_exit(6, None)
|
||||||
GM_Globals[GM_OAUTH2SERVICE_JSON_DATA] = json.loads(json_string)
|
GM_Globals[GM_OAUTH2SERVICE_JSON_DATA] = json.loads(json_string)
|
||||||
|
|
||||||
jwt_apis = ['chat', 'accesscontextmanager'] # APIs which can handle OAuthless JWT tokens
|
jwt_apis = ['chat',
|
||||||
|
'cloudresourcemanager',
|
||||||
|
'accesscontextmanager'] # APIs which can handle OAuthless JWT tokens
|
||||||
def getSvcAcctCredentials(scopes, act_as, api=None):
|
def getSvcAcctCredentials(scopes, act_as, api=None):
|
||||||
try:
|
try:
|
||||||
_getSvcAcctData()
|
_getSvcAcctData()
|
||||||
|
|||||||
@@ -246,7 +246,7 @@ def delete_access_level():
|
|||||||
if not name.startswith('accessPolicies/'):
|
if not name.startswith('accessPolicies/'):
|
||||||
ap_name = get_access_policy(caa)
|
ap_name = get_access_policy(caa)
|
||||||
name = f'{ap_name}/accessLevels/{name}'
|
name = f'{ap_name}/accessLevels/{name}'
|
||||||
print('Deleting access level {name}...')
|
print(f'Deleting access level {name}...')
|
||||||
try:
|
try:
|
||||||
gapi.call(caa.accessPolicies().accessLevels(),
|
gapi.call(caa.accessPolicies().accessLevels(),
|
||||||
'delete',
|
'delete',
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import platform
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
GAM_AUTHOR = 'Jay Lee <jay0lee@gmail.com>'
|
GAM_AUTHOR = 'Jay Lee <jay0lee@gmail.com>'
|
||||||
GAM_VERSION = '6.18'
|
GAM_VERSION = '6.19'
|
||||||
GAM_LICENSE = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
|
GAM_LICENSE = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
|
||||||
|
|
||||||
GAM_URL = 'https://git.io/gam'
|
GAM_URL = 'https://git.io/gam'
|
||||||
@@ -301,6 +301,7 @@ API_NAME_MAPPING = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
API_VER_MAPPING = {
|
API_VER_MAPPING = {
|
||||||
|
'accesscontextmanager': 'v1',
|
||||||
'alertcenter': 'v1beta1',
|
'alertcenter': 'v1beta1',
|
||||||
'driveactivity': 'v2',
|
'driveactivity': 'v2',
|
||||||
'calendar': 'v3',
|
'calendar': 'v3',
|
||||||
|
|||||||
Reference in New Issue
Block a user