Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(496)

Unified Diff: discovery/googleapis/script__v1.json

Issue 2987103002: Api-Roll 52: 2017-07-31 (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « discovery/googleapis/safebrowsing__v4.json ('k') | discovery/googleapis/searchconsole__v1.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: discovery/googleapis/script__v1.json
diff --git a/discovery/googleapis/script__v1.json b/discovery/googleapis/script__v1.json
index c803da9ac1fdbb02a6c51d3f16bd604ea49b4157..7afc6a73c7a3209cb720d1fedb0db37028d868f0 100644
--- a/discovery/googleapis/script__v1.json
+++ b/discovery/googleapis/script__v1.json
@@ -2,6 +2,15 @@
"auth": {
"oauth2": {
"scopes": {
+ "https://www.google.com/m8/feeds": {
+ "description": "Manage your contacts"
+ },
+ "https://www.googleapis.com/auth/userinfo.email": {
+ "description": "View your email address"
+ },
+ "https://www.google.com/calendar/feeds": {
+ "description": "Manage your calendars"
+ },
"https://www.googleapis.com/auth/groups": {
"description": "View and manage your Google Groups"
},
@@ -11,29 +20,20 @@
"https://www.googleapis.com/auth/drive": {
"description": "View and manage the files in your Google Drive"
},
- "https://www.googleapis.com/auth/spreadsheets": {
- "description": "View and manage your spreadsheets in Google Drive"
- },
- "https://mail.google.com/": {
- "description": "Read, send, delete, and manage your email"
+ "https://www.googleapis.com/auth/admin.directory.user": {
+ "description": "View and manage the provisioning of users on your domain"
},
"https://www.googleapis.com/auth/admin.directory.group": {
"description": "View and manage the provisioning of groups on your domain"
},
- "https://www.googleapis.com/auth/admin.directory.user": {
- "description": "View and manage the provisioning of users on your domain"
+ "https://mail.google.com/": {
+ "description": "Read, send, delete, and manage your email"
+ },
+ "https://www.googleapis.com/auth/spreadsheets": {
+ "description": "View and manage your spreadsheets in Google Drive"
},
"https://www.googleapis.com/auth/forms": {
"description": "View and manage your forms in Google Drive"
- },
- "https://www.google.com/m8/feeds": {
- "description": "Manage your contacts"
- },
- "https://www.googleapis.com/auth/userinfo.email": {
- "description": "View your email address"
- },
- "https://www.google.com/calendar/feeds": {
- "description": "Manage your calendars"
}
}
}
@@ -54,6 +54,16 @@
"ownerDomain": "google.com",
"ownerName": "Google",
"parameters": {
+ "bearer_token": {
+ "description": "OAuth bearer token.",
+ "location": "query",
+ "type": "string"
+ },
+ "oauth_token": {
+ "description": "OAuth 2.0 token for the current user.",
+ "location": "query",
+ "type": "string"
+ },
"upload_protocol": {
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"location": "query",
@@ -75,6 +85,11 @@
"location": "query",
"type": "string"
},
+ "callback": {
+ "description": "JSONP",
+ "location": "query",
+ "type": "string"
+ },
"$.xgafv": {
"description": "V1 error format.",
"enum": [
@@ -88,11 +103,6 @@
"location": "query",
"type": "string"
},
- "callback": {
- "description": "JSONP",
- "location": "query",
- "type": "string"
- },
"alt": {
"default": "json",
"description": "Data format for response.",
@@ -129,16 +139,6 @@
"description": "Pretty-print response.",
"location": "query",
"type": "boolean"
- },
- "oauth_token": {
- "description": "OAuth 2.0 token for the current user.",
- "location": "query",
- "type": "string"
- },
- "bearer_token": {
- "description": "OAuth bearer token.",
- "location": "query",
- "type": "string"
}
},
"protocol": "rest",
@@ -184,9 +184,31 @@
}
}
},
- "revision": "20170705",
+ "revision": "20170720",
"rootUrl": "https://script.googleapis.com/",
"schemas": {
+ "ExecutionError": {
+ "description": "An object that provides information about the nature of an error in the Apps\nScript Execution API. If an\n`run` call succeeds but the\nscript function (or Apps Script itself) throws an exception, the response\nbody's `error` field contains a\n`Status` object. The `Status` object's `details` field\ncontains an array with a single one of these `ExecutionError` objects.",
+ "id": "ExecutionError",
+ "properties": {
+ "errorType": {
+ "description": "The error type, for example `TypeError` or `ReferenceError`. If the error\ntype is unavailable, this field is not included.",
+ "type": "string"
+ },
+ "errorMessage": {
+ "description": "The error message thrown by Apps Script, usually localized into the user's\nlanguage.",
+ "type": "string"
+ },
+ "scriptStackTraceElements": {
+ "description": "An array of objects that provide a stack trace through the script to show\nwhere the execution failed, with the deepest call first.",
+ "items": {
+ "$ref": "ScriptStackTraceElement"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
"Status": {
"description": "If a `run` call succeeds but the script function (or Apps Script itself) throws an exception, the response body's `error` field will contain this `Status` object.",
"id": "Status",
@@ -218,6 +240,13 @@
"description": "A request to run the function in a script. The script is identified by the\nspecified `script_id`. Executing a function on a script returns results\nbased on the implementation of the script.",
"id": "ExecutionRequest",
"properties": {
+ "parameters": {
+ "description": "The parameters to be passed to the function being executed. The object type\nfor each parameter should match the expected type in Apps Script.\nParameters cannot be Apps Script-specific object types (such as a\n`Document` or a `Calendar`); they can only be primitive types such as\n`string`, `number`, `array`, `object`, or `boolean`. Optional.",
+ "items": {
+ "type": "any"
+ },
+ "type": "array"
+ },
"sessionState": {
"description": "For Android add-ons only. An ID that represents the user's current session\nin the Android app for Google Docs or Sheets, included as extra data in the\n[`Intent`](https://developer.android.com/guide/components/intents-filters.html)\nthat launches the add-on. When an Android add-on is run with a session\nstate, it gains the privileges of a\n[bound](https://developers.google.com/apps-script/guides/bound) script —\nthat is, it can access information like the user's current cursor position\n(in Docs) or selected cell (in Sheets). To retrieve the state, call\n`Intent.getStringExtra(\"com.google.android.apps.docs.addons.SessionState\")`.\nOptional.",
"type": "string"
@@ -229,13 +258,6 @@
"function": {
"description": "The name of the function to execute in the given script. The name does not\ninclude parentheses or parameters.",
"type": "string"
- },
- "parameters": {
- "description": "The parameters to be passed to the function being executed. The object type\nfor each parameter should match the expected type in Apps Script.\nParameters cannot be Apps Script-specific object types (such as a\n`Document` or a `Calendar`); they can only be primitive types such as\n`string`, `number`, `array`, `object`, or `boolean`. Optional.",
- "items": {
- "type": "any"
- },
- "type": "array"
}
},
"type": "object"
@@ -244,6 +266,13 @@
"description": "A request to retrieve the results from a collection of requests,\nspecified by the operation resource names.",
"id": "JoinAsyncRequest",
"properties": {
+ "names": {
+ "description": "List of operation resource names that we want to join,\nas returned from a call to RunAsync.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
"timeout": {
"description": "Timeout for information retrieval in milliseconds.",
"format": "google-duration",
@@ -252,13 +281,6 @@
"scriptId": {
"description": "The script id which specifies the script which all processes in the names\nfield must be from.",
"type": "string"
- },
- "names": {
- "description": "List of operation resource names that we want to join,\nas returned from a call to RunAsync.",
- "items": {
- "type": "string"
- },
- "type": "array"
}
},
"type": "object"
@@ -327,36 +349,14 @@
"description": "A stack trace through the script that shows where the execution failed.",
"id": "ScriptStackTraceElement",
"properties": {
- "lineNumber": {
- "description": "The line number where the script failed.",
- "format": "int32",
- "type": "integer"
- },
"function": {
"description": "The name of the function that failed.",
"type": "string"
- }
- },
- "type": "object"
- },
- "ExecutionError": {
- "description": "An object that provides information about the nature of an error in the Apps\nScript Execution API. If an\n`run` call succeeds but the\nscript function (or Apps Script itself) throws an exception, the response\nbody's `error` field contains a\n`Status` object. The `Status` object's `details` field\ncontains an array with a single one of these `ExecutionError` objects.",
- "id": "ExecutionError",
- "properties": {
- "scriptStackTraceElements": {
- "description": "An array of objects that provide a stack trace through the script to show\nwhere the execution failed, with the deepest call first.",
- "items": {
- "$ref": "ScriptStackTraceElement"
- },
- "type": "array"
},
- "errorType": {
- "description": "The error type, for example `TypeError` or `ReferenceError`. If the error\ntype is unavailable, this field is not included.",
- "type": "string"
- },
- "errorMessage": {
- "description": "The error message thrown by Apps Script, usually localized into the user's\nlanguage.",
- "type": "string"
+ "lineNumber": {
+ "description": "The line number where the script failed.",
+ "format": "int32",
+ "type": "integer"
}
},
"type": "object"
« no previous file with comments | « discovery/googleapis/safebrowsing__v4.json ('k') | discovery/googleapis/searchconsole__v1.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698