| OLD | NEW |
| 1 { | 1 { |
| 2 "auth": { | 2 "auth": { |
| 3 "oauth2": { | 3 "oauth2": { |
| 4 "scopes": { | 4 "scopes": { |
| 5 "https://mail.google.com/": { | 5 "https://mail.google.com/": { |
| 6 "description": "View and manage your mail" | 6 "description": "View and manage your mail" |
| 7 }, | 7 }, |
| 8 "https://www.google.com/calendar/feeds": { | 8 "https://www.google.com/calendar/feeds": { |
| 9 "description": "Manage your calendars" | 9 "description": "Manage your calendars" |
| 10 }, | 10 }, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 } | 37 } |
| 38 } | 38 } |
| 39 } | 39 } |
| 40 }, | 40 }, |
| 41 "basePath": "", | 41 "basePath": "", |
| 42 "baseUrl": "https://script.googleapis.com/", | 42 "baseUrl": "https://script.googleapis.com/", |
| 43 "batchPath": "batch", | 43 "batchPath": "batch", |
| 44 "description": "Executes Google Apps Script projects.", | 44 "description": "Executes Google Apps Script projects.", |
| 45 "discoveryVersion": "v1", | 45 "discoveryVersion": "v1", |
| 46 "documentationLink": "https://developers.google.com/apps-script/execution/re
st/v1/scripts/run", | 46 "documentationLink": "https://developers.google.com/apps-script/execution/re
st/v1/scripts/run", |
| 47 "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/cvYaayVw4IdFoA5o3qV9XjLT9HI\"", | 47 "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/FcNWZezE05ypidUunx03uCyJR70\"", |
| 48 "icons": { | 48 "icons": { |
| 49 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 49 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
| 50 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 50 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
| 51 }, | 51 }, |
| 52 "id": "script:v1", | 52 "id": "script:v1", |
| 53 "kind": "discovery#restDescription", | 53 "kind": "discovery#restDescription", |
| 54 "name": "script", | 54 "name": "script", |
| 55 "ownerDomain": "google.com", | 55 "ownerDomain": "google.com", |
| 56 "ownerName": "Google", | 56 "ownerName": "Google", |
| 57 "parameters": { | 57 "parameters": { |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 "https://www.googleapis.com/auth/forms", | 169 "https://www.googleapis.com/auth/forms", |
| 170 "https://www.googleapis.com/auth/forms.currentonly", | 170 "https://www.googleapis.com/auth/forms.currentonly", |
| 171 "https://www.googleapis.com/auth/groups", | 171 "https://www.googleapis.com/auth/groups", |
| 172 "https://www.googleapis.com/auth/spreadsheets", | 172 "https://www.googleapis.com/auth/spreadsheets", |
| 173 "https://www.googleapis.com/auth/userinfo.email" | 173 "https://www.googleapis.com/auth/userinfo.email" |
| 174 ] | 174 ] |
| 175 } | 175 } |
| 176 } | 176 } |
| 177 } | 177 } |
| 178 }, | 178 }, |
| 179 "revision": "20160426", | 179 "revision": "20160801", |
| 180 "rootUrl": "https://script.googleapis.com/", | 180 "rootUrl": "https://script.googleapis.com/", |
| 181 "schemas": { | 181 "schemas": { |
| 182 "ExecutionRequest": { | 182 "ExecutionRequest": { |
| 183 "description": "A request to run the function in a script. The scrip
t is identified by the specified `script_id`. Executing a function on a script w
ill return results based on the implementation of the script.", | 183 "description": "A request to run the function in a script. The scrip
t is identified by the specified `script_id`. Executing a function on a script w
ill return results based on the implementation of the script.", |
| 184 "id": "ExecutionRequest", | 184 "id": "ExecutionRequest", |
| 185 "properties": { | 185 "properties": { |
| 186 "function": { | 186 "function": { |
| 187 "description": "The name of the function to execute in the g
iven script. The name does not include parentheses or parameters.", | 187 "description": "The name of the function to execute in the g
iven script. The name does not include parentheses or parameters.", |
| 188 "type": "string" | 188 "type": "string" |
| 189 }, | 189 }, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 208 "Operation": { | 208 "Operation": { |
| 209 "description": "The response will not arrive until the function fini
shes executing. The maximum runtime is listed in the guide to [limitations in Ap
ps Script](https://developers.google.com/apps-script/guides/services/quotas#curr
ent_limitations).\nIf the script function returns successfully, the `response` f
ield will contain an `ExecutionResponse` object with the function's return value
in the object's `result` field.\n\nIf the script function (or Apps Script itsel
f) throws an exception, the `error` field will contain a `Status` object. The `S
tatus` object's `details` field will contain an array with a single `ExecutionEr
ror` object that provides information about the nature of the error.\n\nIf the `
run` call itself fails (for example, because of a malformed request or an author
ization error), the method will return an HTTP response code in the 4XX range wi
th a different format for the response body. Client libraries will automatically
convert a 4XX response into an exception class.", | 209 "description": "The response will not arrive until the function fini
shes executing. The maximum runtime is listed in the guide to [limitations in Ap
ps Script](https://developers.google.com/apps-script/guides/services/quotas#curr
ent_limitations).\nIf the script function returns successfully, the `response` f
ield will contain an `ExecutionResponse` object with the function's return value
in the object's `result` field.\n\nIf the script function (or Apps Script itsel
f) throws an exception, the `error` field will contain a `Status` object. The `S
tatus` object's `details` field will contain an array with a single `ExecutionEr
ror` object that provides information about the nature of the error.\n\nIf the `
run` call itself fails (for example, because of a malformed request or an author
ization error), the method will return an HTTP response code in the 4XX range wi
th a different format for the response body. Client libraries will automatically
convert a 4XX response into an exception class.", |
| 210 "id": "Operation", | 210 "id": "Operation", |
| 211 "properties": { | 211 "properties": { |
| 212 "name": { | 212 "name": { |
| 213 "description": "This field is not used.", | 213 "description": "This field is not used.", |
| 214 "type": "string" | 214 "type": "string" |
| 215 }, | 215 }, |
| 216 "metadata": { | 216 "metadata": { |
| 217 "additionalProperties": { | 217 "additionalProperties": { |
| 218 "description": "Properties of the object. Contains field
@ype with type URL.", | 218 "description": "Properties of the object. Contains field
@type with type URL.", |
| 219 "type": "any" | 219 "type": "any" |
| 220 }, | 220 }, |
| 221 "description": "This field is not used.", | 221 "description": "This field is not used.", |
| 222 "type": "object" | 222 "type": "object" |
| 223 }, | 223 }, |
| 224 "done": { | 224 "done": { |
| 225 "description": "This field is not used.", | 225 "description": "This field is not used.", |
| 226 "type": "boolean" | 226 "type": "boolean" |
| 227 }, | 227 }, |
| 228 "error": { | 228 "error": { |
| 229 "$ref": "Status", | 229 "$ref": "Status", |
| 230 "description": "If a `run` call succeeds but the script func
tion (or Apps Script itself) throws an exception, this field will contain a `Sta
tus` object. The `Status` object's `details` field will contain an array with a
single `ExecutionError` object that provides information about the nature of the
error." | 230 "description": "If a `run` call succeeds but the script func
tion (or Apps Script itself) throws an exception, this field will contain a `Sta
tus` object. The `Status` object's `details` field will contain an array with a
single `ExecutionError` object that provides information about the nature of the
error." |
| 231 }, | 231 }, |
| 232 "response": { | 232 "response": { |
| 233 "additionalProperties": { | 233 "additionalProperties": { |
| 234 "description": "Properties of the object. Contains field
@ype with type URL.", | 234 "description": "Properties of the object. Contains field
@type with type URL.", |
| 235 "type": "any" | 235 "type": "any" |
| 236 }, | 236 }, |
| 237 "description": "If the script function returns successfully,
this field will contain an `ExecutionResponse` object with the function's retur
n value as the object's `result` field.", | 237 "description": "If the script function returns successfully,
this field will contain an `ExecutionResponse` object with the function's retur
n value as the object's `result` field.", |
| 238 "type": "object" | 238 "type": "object" |
| 239 } | 239 } |
| 240 }, | 240 }, |
| 241 "type": "object" | 241 "type": "object" |
| 242 }, | 242 }, |
| 243 "Status": { | 243 "Status": { |
| 244 "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.", | 244 "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.", |
| 245 "id": "Status", | 245 "id": "Status", |
| 246 "properties": { | 246 "properties": { |
| 247 "code": { | 247 "code": { |
| 248 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", | 248 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", |
| 249 "format": "int32", | 249 "format": "int32", |
| 250 "type": "integer" | 250 "type": "integer" |
| 251 }, | 251 }, |
| 252 "message": { | 252 "message": { |
| 253 "description": "A developer-facing error message, which shou
ld be in English. Any user-facing error message should be localized and sent in
the google.rpc.Status.details field, or localized by the client.", | 253 "description": "A developer-facing error message, which shou
ld be in English. Any user-facing error message should be localized and sent in
the google.rpc.Status.details field, or localized by the client.", |
| 254 "type": "string" | 254 "type": "string" |
| 255 }, | 255 }, |
| 256 "details": { | 256 "details": { |
| 257 "description": "An array that contains a single `ExecutionEr
ror` object that provides information about the nature of the error.", | 257 "description": "An array that contains a single `ExecutionEr
ror` object that provides information about the nature of the error.", |
| 258 "items": { | 258 "items": { |
| 259 "additionalProperties": { | 259 "additionalProperties": { |
| 260 "description": "Properties of the object. Contains f
ield @ype with type URL.", | 260 "description": "Properties of the object. Contains f
ield @type with type URL.", |
| 261 "type": "any" | 261 "type": "any" |
| 262 }, | 262 }, |
| 263 "type": "object" | 263 "type": "object" |
| 264 }, | 264 }, |
| 265 "type": "array" | 265 "type": "array" |
| 266 } | 266 } |
| 267 }, | 267 }, |
| 268 "type": "object" | 268 "type": "object" |
| 269 }, | 269 }, |
| 270 "ExecutionError": { | 270 "ExecutionError": { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 }, | 305 }, |
| 306 "type": "object" | 306 "type": "object" |
| 307 }, | 307 }, |
| 308 "ExecutionResponse": { | 308 "ExecutionResponse": { |
| 309 "description": "An object that provides the return value of a functi
on executed through the Apps Script Execution API. If an `run` call succeeds and
the script function returns successfully, the response body's `response` field
will contain this `ExecutionResponse` object.", | 309 "description": "An object that provides the return value of a functi
on executed through the Apps Script Execution API. If an `run` call succeeds and
the script function returns successfully, the response body's `response` field
will contain this `ExecutionResponse` object.", |
| 310 "id": "ExecutionResponse", | 310 "id": "ExecutionResponse", |
| 311 "properties": { | 311 "properties": { |
| 312 "result": { | 312 "result": { |
| 313 "description": "The return value of the script function. The
type will match the type returned in Apps Script. Functions called through the
Execution API cannot return Apps Script-specific objects (such as a `Document` o
r `Calendar`); they can only return primitive types such as a `string`, `number`
, `array`, `object`, or `boolean`.", | 313 "description": "The return value of the script function. The
type will match the type returned in Apps Script. Functions called through the
Execution API cannot return Apps Script-specific objects (such as a `Document` o
r `Calendar`); they can only return primitive types such as a `string`, `number`
, `array`, `object`, or `boolean`.", |
| 314 "type": "any" | 314 "type": "any" |
| 315 }, |
| 316 "status": { |
| 317 "enum": [ |
| 318 "SUCCESS", |
| 319 "CANCELED" |
| 320 ], |
| 321 "type": "string" |
| 315 } | 322 } |
| 316 }, | 323 }, |
| 317 "type": "object" | 324 "type": "object" |
| 318 } | 325 } |
| 319 }, | 326 }, |
| 320 "servicePath": "", | 327 "servicePath": "", |
| 321 "title": "Google Apps Script Execution API", | 328 "title": "Google Apps Script Execution API", |
| 322 "version": "v1" | 329 "version": "v1" |
| 323 } | 330 } |
| OLD | NEW |