mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-05 13:21:35 +00:00
remove email-settings JSON, fix e on scope selection
This commit is contained in:
@@ -1,151 +0,0 @@
|
|||||||
{
|
|
||||||
"kind": "discovery#restDescription",
|
|
||||||
"discoveryVersion": "v1",
|
|
||||||
"id": "email-settings:v2",
|
|
||||||
"name": "email-settings",
|
|
||||||
"version": "v2",
|
|
||||||
"revision": "20161013",
|
|
||||||
"title": "Email Settings API",
|
|
||||||
"description": "Lets you manage Google Apps Email Settings",
|
|
||||||
"ownerDomain": "google.com",
|
|
||||||
"ownerName": "Google",
|
|
||||||
"icons": {
|
|
||||||
"x16": "http://www.google.com/images/icons/product/search-16.gif",
|
|
||||||
"x32": "http://www.google.com/images/icons/product/search-32.gif"
|
|
||||||
},
|
|
||||||
"documentationLink": "https://developers.google.com/admin-sdk/email-settings",
|
|
||||||
"protocol": "rest",
|
|
||||||
"baseUrl": "https://apps-apis.google.com/",
|
|
||||||
"rootUrl": "https://apps-apis.google.com/",
|
|
||||||
"servicePath": "/a/feeds/emailsettings/2.0/",
|
|
||||||
"parameters": {
|
|
||||||
"v": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "GData Version",
|
|
||||||
"default": "2.0",
|
|
||||||
"enum": [
|
|
||||||
"2.0"
|
|
||||||
],
|
|
||||||
"enumDescriptions": [
|
|
||||||
"GData 2.0"
|
|
||||||
],
|
|
||||||
"location": "query"
|
|
||||||
},
|
|
||||||
"alt": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "Data format for the response.",
|
|
||||||
"default": "json",
|
|
||||||
"enum": [
|
|
||||||
"json"
|
|
||||||
],
|
|
||||||
"enumDescriptions": [
|
|
||||||
"Responses with Content-Type of application/json"
|
|
||||||
],
|
|
||||||
"location": "query"
|
|
||||||
},
|
|
||||||
"quotaUser": {
|
|
||||||
"type": "string",
|
|
||||||
"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. Overrides userIp if both are provided.",
|
|
||||||
"location": "query"
|
|
||||||
},
|
|
||||||
"prettyPrint": {
|
|
||||||
"type": "boolean",
|
|
||||||
"description": "Returns response with indentations and line breaks.",
|
|
||||||
"default": "true",
|
|
||||||
"location": "query"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"auth": {
|
|
||||||
"oauth2": {
|
|
||||||
"scopes": {
|
|
||||||
"https://apps-apis.google.com/a/feeds/emailsettings/2.0/": {
|
|
||||||
"description": "Manage email settings"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"schemas": {
|
|
||||||
"Delegate": {
|
|
||||||
"id": "Delegate",
|
|
||||||
"type": "object",
|
|
||||||
"description": "a delegate.",
|
|
||||||
"properties": {
|
|
||||||
"apps$property": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"name": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "property name"
|
|
||||||
},
|
|
||||||
"value": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "organization name value"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"Delegates": {
|
|
||||||
"id": "feed",
|
|
||||||
"type": "object",
|
|
||||||
"description": "List of delegates.",
|
|
||||||
"properties": {
|
|
||||||
"entry": {
|
|
||||||
"type": "object",
|
|
||||||
"description": "list of delegates",
|
|
||||||
"items": {
|
|
||||||
"$ref": "Delegate"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"resources": {
|
|
||||||
"delegates": {
|
|
||||||
"methods": {
|
|
||||||
"get": {
|
|
||||||
"id": "email-settings.delegates.get",
|
|
||||||
"path": "{domainName}/{delegator}/delegation",
|
|
||||||
"httpMethod": "GET",
|
|
||||||
"parameters": {
|
|
||||||
"domainName": {
|
|
||||||
"type": "string",
|
|
||||||
"required": "true",
|
|
||||||
"location": "path"
|
|
||||||
},
|
|
||||||
"delegator": {
|
|
||||||
"type": "string",
|
|
||||||
"required": "true",
|
|
||||||
"location": "path"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"response": {
|
|
||||||
"$ref": "Delegates"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"delete": {
|
|
||||||
"id": "email-settings.delegates.delete",
|
|
||||||
"path": "{domainName}/{delegator}/delegation/{delegate}",
|
|
||||||
"httpMethod": "DELETE",
|
|
||||||
"parameters": {
|
|
||||||
"domainName": {
|
|
||||||
"type": "string",
|
|
||||||
"required": "true",
|
|
||||||
"location": "path"
|
|
||||||
},
|
|
||||||
"delegator": {
|
|
||||||
"type": "string",
|
|
||||||
"required": "true",
|
|
||||||
"location": "path"
|
|
||||||
},
|
|
||||||
"delegate": {
|
|
||||||
"type": "string",
|
|
||||||
"required": "true",
|
|
||||||
"location": "path"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -11999,7 +11999,7 @@ def doRequestOAuth(login_hint=None):
|
|||||||
flags = cmd_flags(noLocalWebserver=GC_Values[GC_NO_BROWSER])
|
flags = cmd_flags(noLocalWebserver=GC_Values[GC_NO_BROWSER])
|
||||||
scopes = getScopesFromUser()
|
scopes = getScopesFromUser()
|
||||||
if scopes is None:
|
if scopes is None:
|
||||||
return
|
systemErrorExit(0, u'')
|
||||||
client_id, client_secret = getOAuthClientIDAndSecret()
|
client_id, client_secret = getOAuthClientIDAndSecret()
|
||||||
login_hint = getValidateLoginHint(login_hint)
|
login_hint = getValidateLoginHint(login_hint)
|
||||||
flow = oauth2client.client.OAuth2WebServerFlow(client_id=client_id,
|
flow = oauth2client.client.OAuth2WebServerFlow(client_id=client_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user