@maxim_mazurok/gapi.client.script-v1 0.0.20230424 → 0.0.20230514
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.
- package/index.d.ts +814 -406
- package/package.json +1 -1
- package/tests.ts +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://script.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230514
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -27,612 +27,854 @@ declare namespace gapi.client {
|
|
|
27
27
|
* The list of script project files. One of the files is a script manifest; it must be named "appsscript", must have type of JSON, and include the manifest configurations for the
|
|
28
28
|
* project.
|
|
29
29
|
*/
|
|
30
|
-
files?:
|
|
30
|
+
files?:
|
|
31
|
+
File[];
|
|
31
32
|
/** The script project's Drive ID. */
|
|
32
|
-
scriptId?:
|
|
33
|
+
scriptId?:
|
|
34
|
+
string;
|
|
33
35
|
}
|
|
34
36
|
interface CreateProjectRequest {
|
|
35
37
|
/**
|
|
36
38
|
* The Drive ID of a parent file that the created script project is bound to. This is usually the ID of a Google Doc, Google Sheet, Google Form, or Google Slides file. If not set, a
|
|
37
39
|
* standalone script project is created.
|
|
38
40
|
*/
|
|
39
|
-
parentId?:
|
|
41
|
+
parentId?:
|
|
42
|
+
string;
|
|
40
43
|
/** The title for the project. */
|
|
41
|
-
title?:
|
|
44
|
+
title?:
|
|
45
|
+
string;
|
|
42
46
|
}
|
|
43
47
|
interface Deployment {
|
|
44
48
|
/** The deployment configuration. */
|
|
45
|
-
deploymentConfig?:
|
|
49
|
+
deploymentConfig?:
|
|
50
|
+
DeploymentConfig;
|
|
46
51
|
/** The deployment ID for this deployment. */
|
|
47
|
-
deploymentId?:
|
|
52
|
+
deploymentId?:
|
|
53
|
+
string;
|
|
48
54
|
/** The deployment's entry points. */
|
|
49
|
-
entryPoints?:
|
|
55
|
+
entryPoints?:
|
|
56
|
+
EntryPoint[];
|
|
50
57
|
/** Last modified date time stamp. */
|
|
51
|
-
updateTime?:
|
|
58
|
+
updateTime?:
|
|
59
|
+
string;
|
|
52
60
|
}
|
|
53
61
|
interface DeploymentConfig {
|
|
54
62
|
/** The description for this deployment. */
|
|
55
|
-
description?:
|
|
63
|
+
description?:
|
|
64
|
+
string;
|
|
56
65
|
/** The manifest file name for this deployment. */
|
|
57
|
-
manifestFileName?:
|
|
66
|
+
manifestFileName?:
|
|
67
|
+
string;
|
|
58
68
|
/** The script project's Drive ID. */
|
|
59
|
-
scriptId?:
|
|
69
|
+
scriptId?:
|
|
70
|
+
string;
|
|
60
71
|
/** The version number on which this deployment is based. */
|
|
61
|
-
versionNumber?:
|
|
72
|
+
versionNumber?:
|
|
73
|
+
number;
|
|
62
74
|
}
|
|
63
75
|
// tslint:disable-next-line:no-empty-interface
|
|
64
76
|
interface Empty {
|
|
65
77
|
}
|
|
66
78
|
interface EntryPoint {
|
|
67
79
|
/** Add-on properties. */
|
|
68
|
-
addOn?:
|
|
80
|
+
addOn?:
|
|
81
|
+
GoogleAppsScriptTypeAddOnEntryPoint;
|
|
69
82
|
/** The type of the entry point. */
|
|
70
|
-
entryPointType?:
|
|
83
|
+
entryPointType?:
|
|
84
|
+
string;
|
|
71
85
|
/** An entry point specification for Apps Script API execution calls. */
|
|
72
|
-
executionApi?:
|
|
86
|
+
executionApi?:
|
|
87
|
+
GoogleAppsScriptTypeExecutionApiEntryPoint;
|
|
73
88
|
/** An entry point specification for web apps. */
|
|
74
|
-
webApp?:
|
|
89
|
+
webApp?:
|
|
90
|
+
GoogleAppsScriptTypeWebAppEntryPoint;
|
|
75
91
|
}
|
|
76
92
|
interface ExecuteStreamResponse {
|
|
77
93
|
/** The result of the execution. */
|
|
78
|
-
result?:
|
|
94
|
+
result?:
|
|
95
|
+
ScriptExecutionResult;
|
|
79
96
|
}
|
|
80
97
|
interface ExecutionError {
|
|
81
98
|
/** The error message thrown by Apps Script, usually localized into the user's language. */
|
|
82
|
-
errorMessage?:
|
|
99
|
+
errorMessage?:
|
|
100
|
+
string;
|
|
83
101
|
/** The error type, for example `TypeError` or `ReferenceError`. If the error type is unavailable, this field is not included. */
|
|
84
|
-
errorType?:
|
|
102
|
+
errorType?:
|
|
103
|
+
string;
|
|
85
104
|
/** An array of objects that provide a stack trace through the script to show where the execution failed, with the deepest call first. */
|
|
86
|
-
scriptStackTraceElements?:
|
|
105
|
+
scriptStackTraceElements?:
|
|
106
|
+
ScriptStackTraceElement[];
|
|
87
107
|
}
|
|
88
108
|
interface ExecutionRequest {
|
|
89
109
|
/**
|
|
90
110
|
* If `true` and the user is an owner of the script, the script runs at the most recently saved version rather than the version deployed for use with the Apps Script API. Optional;
|
|
91
111
|
* default is `false`.
|
|
92
112
|
*/
|
|
93
|
-
devMode?:
|
|
113
|
+
devMode?:
|
|
114
|
+
boolean;
|
|
94
115
|
/**
|
|
95
116
|
* The name of the function to execute in the given script. The name does not include parentheses or parameters. It can reference a function in an included library such as
|
|
96
117
|
* `Library.libFunction1`.
|
|
97
118
|
*/
|
|
98
|
-
function?:
|
|
119
|
+
function?:
|
|
120
|
+
string;
|
|
99
121
|
/**
|
|
100
122
|
* The parameters to be passed to the function being executed. The object type for each parameter should match the expected type in Apps Script. Parameters cannot be Apps
|
|
101
123
|
* Script-specific object types (such as a `Document` or a `Calendar`); they can only be primitive types such as `string`, `number`, `array`, `object`, or `boolean`. Optional.
|
|
102
124
|
*/
|
|
103
|
-
parameters?:
|
|
125
|
+
parameters?:
|
|
126
|
+
any[];
|
|
104
127
|
/**
|
|
105
128
|
* *Deprecated*. For use with Android add-ons only. An ID that represents the user's current session in the Android app for Google Docs or Sheets, included as extra data in the
|
|
106
129
|
* [Intent](https://developer.android.com/guide/components/intents-filters.html) that launches the add-on. When an Android add-on is run with a session state, it gains the privileges
|
|
107
130
|
* of a [bound](https://developers.google.com/apps-script/guides/bound) script—that is, it can access information like the user's current cursor position (in Docs) or selected cell (in
|
|
108
131
|
* Sheets). To retrieve the state, call `Intent.getStringExtra("com.google.android.apps.docs.addons.SessionState")`. Optional.
|
|
109
132
|
*/
|
|
110
|
-
sessionState?:
|
|
133
|
+
sessionState?:
|
|
134
|
+
string;
|
|
111
135
|
}
|
|
112
136
|
interface ExecutionResponse {
|
|
113
137
|
/**
|
|
114
138
|
* The return value of the script function. The type matches the object type returned in Apps Script. Functions called using the Apps Script API cannot return Apps Script-specific
|
|
115
139
|
* objects (such as a `Document` or a `Calendar`); they can only return primitive types such as a `string`, `number`, `array`, `object`, or `boolean`.
|
|
116
140
|
*/
|
|
117
|
-
result?:
|
|
141
|
+
result?:
|
|
142
|
+
any;
|
|
118
143
|
}
|
|
119
144
|
interface File {
|
|
120
145
|
/** Creation date timestamp. This read-only field is only visible to users who have WRITER permission for the script project. */
|
|
121
|
-
createTime?:
|
|
146
|
+
createTime?:
|
|
147
|
+
string;
|
|
122
148
|
/** The defined set of functions in the script file, if any. */
|
|
123
|
-
functionSet?:
|
|
149
|
+
functionSet?:
|
|
150
|
+
GoogleAppsScriptTypeFunctionSet;
|
|
124
151
|
/** The user who modified the file most recently. This read-only field is only visible to users who have WRITER permission for the script project. */
|
|
125
|
-
lastModifyUser?:
|
|
152
|
+
lastModifyUser?:
|
|
153
|
+
GoogleAppsScriptTypeUser;
|
|
126
154
|
/** The name of the file. The file extension is not part of the file name, which can be identified from the type field. */
|
|
127
|
-
name?:
|
|
155
|
+
name?:
|
|
156
|
+
string;
|
|
128
157
|
/** The file content. */
|
|
129
|
-
source?:
|
|
158
|
+
source?:
|
|
159
|
+
string;
|
|
130
160
|
/** The type of the file. */
|
|
131
|
-
type?:
|
|
161
|
+
type?:
|
|
162
|
+
string;
|
|
132
163
|
/** Last modified date timestamp. This read-only field is only visible to users who have WRITER permission for the script project. */
|
|
133
|
-
updateTime?:
|
|
164
|
+
updateTime?:
|
|
165
|
+
string;
|
|
134
166
|
}
|
|
135
167
|
interface GoogleAppsScriptTypeAddOnEntryPoint {
|
|
136
168
|
/** The add-on's required list of supported container types. */
|
|
137
|
-
addOnType?:
|
|
169
|
+
addOnType?:
|
|
170
|
+
string;
|
|
138
171
|
/** The add-on's optional description. */
|
|
139
|
-
description?:
|
|
172
|
+
description?:
|
|
173
|
+
string;
|
|
140
174
|
/** The add-on's optional help URL. */
|
|
141
|
-
helpUrl?:
|
|
175
|
+
helpUrl?:
|
|
176
|
+
string;
|
|
142
177
|
/** The add-on's required post install tip URL. */
|
|
143
|
-
postInstallTipUrl?:
|
|
178
|
+
postInstallTipUrl?:
|
|
179
|
+
string;
|
|
144
180
|
/** The add-on's optional report issue URL. */
|
|
145
|
-
reportIssueUrl?:
|
|
181
|
+
reportIssueUrl?:
|
|
182
|
+
string;
|
|
146
183
|
/** The add-on's required title. */
|
|
147
|
-
title?:
|
|
184
|
+
title?:
|
|
185
|
+
string;
|
|
148
186
|
}
|
|
149
187
|
interface GoogleAppsScriptTypeExecutionApiConfig {
|
|
150
188
|
/** Who has permission to run the API executable. */
|
|
151
|
-
access?:
|
|
189
|
+
access?:
|
|
190
|
+
string;
|
|
152
191
|
}
|
|
153
192
|
interface GoogleAppsScriptTypeExecutionApiEntryPoint {
|
|
154
193
|
/** The entry point's configuration. */
|
|
155
|
-
entryPointConfig?:
|
|
194
|
+
entryPointConfig?:
|
|
195
|
+
GoogleAppsScriptTypeExecutionApiConfig;
|
|
156
196
|
}
|
|
157
197
|
interface GoogleAppsScriptTypeFunction {
|
|
158
198
|
/** The function name in the script project. */
|
|
159
|
-
name?:
|
|
199
|
+
name?:
|
|
200
|
+
string;
|
|
160
201
|
/** The ordered list of parameter names of the function in the script project. */
|
|
161
|
-
parameters?:
|
|
202
|
+
parameters?:
|
|
203
|
+
string[];
|
|
162
204
|
}
|
|
163
205
|
interface GoogleAppsScriptTypeFunctionSet {
|
|
164
206
|
/** A list of functions composing the set. */
|
|
165
|
-
values?:
|
|
207
|
+
values?:
|
|
208
|
+
GoogleAppsScriptTypeFunction[];
|
|
166
209
|
}
|
|
167
210
|
interface GoogleAppsScriptTypeProcess {
|
|
168
211
|
/** Duration the execution spent executing. */
|
|
169
|
-
duration?:
|
|
212
|
+
duration?:
|
|
213
|
+
string;
|
|
170
214
|
/** Name of the function the started the execution. */
|
|
171
|
-
functionName?:
|
|
215
|
+
functionName?:
|
|
216
|
+
string;
|
|
172
217
|
/** The executions status. */
|
|
173
|
-
processStatus?:
|
|
218
|
+
processStatus?:
|
|
219
|
+
string;
|
|
174
220
|
/** The executions type. */
|
|
175
|
-
processType?:
|
|
221
|
+
processType?:
|
|
222
|
+
string;
|
|
176
223
|
/** Name of the script being executed. */
|
|
177
|
-
projectName?:
|
|
224
|
+
projectName?:
|
|
225
|
+
string;
|
|
226
|
+
/** Which version of maestro to use to execute the script. */
|
|
227
|
+
runtimeVersion?:
|
|
228
|
+
string;
|
|
178
229
|
/** Time the execution started. */
|
|
179
|
-
startTime?:
|
|
230
|
+
startTime?:
|
|
231
|
+
string;
|
|
180
232
|
/** The executing users access level to the script. */
|
|
181
|
-
userAccessLevel?:
|
|
233
|
+
userAccessLevel?:
|
|
234
|
+
string;
|
|
182
235
|
}
|
|
183
236
|
interface GoogleAppsScriptTypeUser {
|
|
184
237
|
/** The user's domain. */
|
|
185
|
-
domain?:
|
|
238
|
+
domain?:
|
|
239
|
+
string;
|
|
186
240
|
/** The user's identifying email address. */
|
|
187
|
-
email?:
|
|
241
|
+
email?:
|
|
242
|
+
string;
|
|
188
243
|
/** The user's display name. */
|
|
189
|
-
name?:
|
|
244
|
+
name?:
|
|
245
|
+
string;
|
|
190
246
|
/** The user's photo. */
|
|
191
|
-
photoUrl?:
|
|
247
|
+
photoUrl?:
|
|
248
|
+
string;
|
|
192
249
|
}
|
|
193
250
|
interface GoogleAppsScriptTypeWebAppConfig {
|
|
194
251
|
/** Who has permission to run the web app. */
|
|
195
|
-
access?:
|
|
252
|
+
access?:
|
|
253
|
+
string;
|
|
196
254
|
/** Who to execute the web app as. */
|
|
197
|
-
executeAs?:
|
|
255
|
+
executeAs?:
|
|
256
|
+
string;
|
|
198
257
|
}
|
|
199
258
|
interface GoogleAppsScriptTypeWebAppEntryPoint {
|
|
200
259
|
/** The entry point's configuration. */
|
|
201
|
-
entryPointConfig?:
|
|
260
|
+
entryPointConfig?:
|
|
261
|
+
GoogleAppsScriptTypeWebAppConfig;
|
|
202
262
|
/** The URL for the web application. */
|
|
203
|
-
url?:
|
|
263
|
+
url?:
|
|
264
|
+
string;
|
|
204
265
|
}
|
|
205
266
|
interface ListDeploymentsResponse {
|
|
206
267
|
/** The list of deployments. */
|
|
207
|
-
deployments?:
|
|
268
|
+
deployments?:
|
|
269
|
+
Deployment[];
|
|
208
270
|
/** The token that can be used in the next call to get the next page of results. */
|
|
209
|
-
nextPageToken?:
|
|
271
|
+
nextPageToken?:
|
|
272
|
+
string;
|
|
210
273
|
}
|
|
211
274
|
interface ListScriptProcessesResponse {
|
|
212
275
|
/** Token for the next page of results. If empty, there are no more pages remaining. */
|
|
213
|
-
nextPageToken?:
|
|
276
|
+
nextPageToken?:
|
|
277
|
+
string;
|
|
214
278
|
/** List of processes matching request parameters. */
|
|
215
|
-
processes?:
|
|
279
|
+
processes?:
|
|
280
|
+
GoogleAppsScriptTypeProcess[];
|
|
216
281
|
}
|
|
217
282
|
interface ListUserProcessesResponse {
|
|
218
283
|
/** Token for the next page of results. If empty, there are no more pages remaining. */
|
|
219
|
-
nextPageToken?:
|
|
284
|
+
nextPageToken?:
|
|
285
|
+
string;
|
|
220
286
|
/** List of processes matching request parameters. */
|
|
221
|
-
processes?:
|
|
287
|
+
processes?:
|
|
288
|
+
GoogleAppsScriptTypeProcess[];
|
|
222
289
|
}
|
|
223
290
|
interface ListValue {
|
|
224
291
|
/** Repeated field of dynamically typed values. */
|
|
225
|
-
values?:
|
|
292
|
+
values?:
|
|
293
|
+
Value[];
|
|
226
294
|
}
|
|
227
295
|
interface ListVersionsResponse {
|
|
228
296
|
/** The token use to fetch the next page of records. if not exist in the response, that means no more versions to list. */
|
|
229
|
-
nextPageToken?:
|
|
297
|
+
nextPageToken?:
|
|
298
|
+
string;
|
|
230
299
|
/** The list of versions. */
|
|
231
|
-
versions?:
|
|
300
|
+
versions?:
|
|
301
|
+
Version[];
|
|
232
302
|
}
|
|
233
303
|
interface Metrics {
|
|
234
304
|
/** Number of active users. */
|
|
235
|
-
activeUsers?:
|
|
305
|
+
activeUsers?:
|
|
306
|
+
MetricsValue[];
|
|
236
307
|
/** Number of failed executions. */
|
|
237
|
-
failedExecutions?:
|
|
308
|
+
failedExecutions?:
|
|
309
|
+
MetricsValue[];
|
|
238
310
|
/** Number of total executions. */
|
|
239
|
-
totalExecutions?:
|
|
311
|
+
totalExecutions?:
|
|
312
|
+
MetricsValue[];
|
|
240
313
|
}
|
|
241
314
|
interface MetricsValue {
|
|
242
315
|
/** Required field indicating the end time of the interval. */
|
|
243
|
-
endTime?:
|
|
316
|
+
endTime?:
|
|
317
|
+
string;
|
|
244
318
|
/** Required field indicating the start time of the interval. */
|
|
245
|
-
startTime?:
|
|
319
|
+
startTime?:
|
|
320
|
+
string;
|
|
246
321
|
/** Indicates the number of executions counted. */
|
|
247
|
-
value?:
|
|
322
|
+
value?:
|
|
323
|
+
string;
|
|
248
324
|
}
|
|
249
325
|
interface Operation {
|
|
250
326
|
/**
|
|
251
327
|
* This field indicates whether the script execution has completed. A completed execution has a populated `response` field containing the ExecutionResponse from function that was
|
|
252
328
|
* executed.
|
|
253
329
|
*/
|
|
254
|
-
done?:
|
|
330
|
+
done?:
|
|
331
|
+
boolean;
|
|
255
332
|
/**
|
|
256
333
|
* If a `run` call succeeds but the script function (or Apps Script itself) throws an exception, this field contains a Status object. The `Status` object's `details` field contains an
|
|
257
334
|
* array with a single ExecutionError object that provides information about the nature of the error.
|
|
258
335
|
*/
|
|
259
|
-
error?:
|
|
336
|
+
error?:
|
|
337
|
+
Status;
|
|
260
338
|
/** If the script function returns successfully, this field contains an ExecutionResponse object with the function's return value. */
|
|
261
|
-
response?:
|
|
339
|
+
response?:
|
|
340
|
+
{ [P in string]: any };
|
|
262
341
|
}
|
|
263
342
|
interface Project {
|
|
264
343
|
/** When the script was created. */
|
|
265
|
-
createTime?:
|
|
344
|
+
createTime?:
|
|
345
|
+
string;
|
|
266
346
|
/** User who originally created the script. */
|
|
267
|
-
creator?:
|
|
347
|
+
creator?:
|
|
348
|
+
GoogleAppsScriptTypeUser;
|
|
268
349
|
/** User who last modified the script. */
|
|
269
|
-
lastModifyUser?:
|
|
350
|
+
lastModifyUser?:
|
|
351
|
+
GoogleAppsScriptTypeUser;
|
|
270
352
|
/**
|
|
271
353
|
* The parent's Drive ID that the script will be attached to. This is usually the ID of a Google Document or Google Sheet. This filed is optional, and if not set, a stand-alone script
|
|
272
354
|
* will be created.
|
|
273
355
|
*/
|
|
274
|
-
parentId?:
|
|
356
|
+
parentId?:
|
|
357
|
+
string;
|
|
275
358
|
/** The script project's Drive ID. */
|
|
276
|
-
scriptId?:
|
|
359
|
+
scriptId?:
|
|
360
|
+
string;
|
|
277
361
|
/** The title for the project. */
|
|
278
|
-
title?:
|
|
362
|
+
title?:
|
|
363
|
+
string;
|
|
279
364
|
/** When the script was last updated. */
|
|
280
|
-
updateTime?:
|
|
365
|
+
updateTime?:
|
|
366
|
+
string;
|
|
281
367
|
}
|
|
282
368
|
interface ScriptExecutionResult {
|
|
283
369
|
/** The returned value of the execution. */
|
|
284
|
-
returnValue?:
|
|
370
|
+
returnValue?:
|
|
371
|
+
Value;
|
|
285
372
|
}
|
|
286
373
|
interface ScriptStackTraceElement {
|
|
287
374
|
/** The name of the function that failed. */
|
|
288
|
-
function?:
|
|
375
|
+
function?:
|
|
376
|
+
string;
|
|
289
377
|
/** The line number where the script failed. */
|
|
290
|
-
lineNumber?:
|
|
378
|
+
lineNumber?:
|
|
379
|
+
number;
|
|
291
380
|
}
|
|
292
381
|
interface Status {
|
|
293
382
|
/** The status code. For this API, this value either: - 10, indicating a `SCRIPT_TIMEOUT` error, - 3, indicating an `INVALID_ARGUMENT` error, or - 1, indicating a `CANCELLED` execution. */
|
|
294
|
-
code?:
|
|
383
|
+
code?:
|
|
384
|
+
number;
|
|
295
385
|
/** An array that contains a single ExecutionError object that provides information about the nature of the error. */
|
|
296
|
-
details?:
|
|
386
|
+
details?:
|
|
387
|
+
Array<{ [P in string]: any }>;
|
|
297
388
|
/** A developer-facing error message, which is in English. Any user-facing error message is localized and sent in the details field, or localized by the client. */
|
|
298
|
-
message?:
|
|
389
|
+
message?:
|
|
390
|
+
string;
|
|
299
391
|
}
|
|
300
392
|
interface Struct {
|
|
301
393
|
/** Unordered map of dynamically typed values. */
|
|
302
|
-
fields?:
|
|
394
|
+
fields?:
|
|
395
|
+
{ [P in string]: Value };
|
|
303
396
|
}
|
|
304
397
|
interface UpdateDeploymentRequest {
|
|
305
398
|
/** The deployment configuration. */
|
|
306
|
-
deploymentConfig?:
|
|
399
|
+
deploymentConfig?:
|
|
400
|
+
DeploymentConfig;
|
|
307
401
|
}
|
|
308
402
|
interface Value {
|
|
309
403
|
/** Represents a boolean value. */
|
|
310
|
-
boolValue?:
|
|
404
|
+
boolValue?:
|
|
405
|
+
boolean;
|
|
311
406
|
/** Represents raw byte values. */
|
|
312
|
-
bytesValue?:
|
|
407
|
+
bytesValue?:
|
|
408
|
+
string;
|
|
313
409
|
/** Represents a date in ms since the epoch. */
|
|
314
|
-
dateValue?:
|
|
410
|
+
dateValue?:
|
|
411
|
+
string;
|
|
315
412
|
/** Represents a repeated `Value`. */
|
|
316
|
-
listValue?:
|
|
413
|
+
listValue?:
|
|
414
|
+
ListValue;
|
|
317
415
|
/** Represents a null value. */
|
|
318
|
-
nullValue?:
|
|
416
|
+
nullValue?:
|
|
417
|
+
string;
|
|
319
418
|
/** Represents a double value. */
|
|
320
|
-
numberValue?:
|
|
419
|
+
numberValue?:
|
|
420
|
+
number;
|
|
321
421
|
/** Represents a structured proto value. */
|
|
322
|
-
protoValue?:
|
|
422
|
+
protoValue?:
|
|
423
|
+
{ [P in string]: any };
|
|
323
424
|
/** Represents a string value. */
|
|
324
|
-
stringValue?:
|
|
425
|
+
stringValue?:
|
|
426
|
+
string;
|
|
325
427
|
/** Represents a structured value. */
|
|
326
|
-
structValue?:
|
|
428
|
+
structValue?:
|
|
429
|
+
Struct;
|
|
327
430
|
}
|
|
328
431
|
interface Version {
|
|
329
432
|
/** When the version was created. */
|
|
330
|
-
createTime?:
|
|
433
|
+
createTime?:
|
|
434
|
+
string;
|
|
331
435
|
/** The description for this version. */
|
|
332
|
-
description?:
|
|
436
|
+
description?:
|
|
437
|
+
string;
|
|
333
438
|
/** The script project's Drive ID. */
|
|
334
|
-
scriptId?:
|
|
439
|
+
scriptId?:
|
|
440
|
+
string;
|
|
335
441
|
/** The incremental ID that is created by Apps Script when a version is created. This is system assigned number and is immutable once created. */
|
|
336
|
-
versionNumber?:
|
|
442
|
+
versionNumber?:
|
|
443
|
+
number;
|
|
337
444
|
}
|
|
338
445
|
interface ProcessesResource {
|
|
339
446
|
/** List information about processes made by or on behalf of a user, such as process type and current status. */
|
|
340
447
|
list(request?: {
|
|
341
448
|
/** V1 error format. */
|
|
342
|
-
"$.xgafv"?:
|
|
449
|
+
"$.xgafv"?:
|
|
450
|
+
string;
|
|
343
451
|
/** OAuth access token. */
|
|
344
|
-
access_token?:
|
|
452
|
+
access_token?:
|
|
453
|
+
string;
|
|
345
454
|
/** Data format for response. */
|
|
346
|
-
alt?:
|
|
455
|
+
alt?:
|
|
456
|
+
string;
|
|
347
457
|
/** JSONP */
|
|
348
|
-
callback?:
|
|
458
|
+
callback?:
|
|
459
|
+
string;
|
|
349
460
|
/** Selector specifying which fields to include in a partial response. */
|
|
350
|
-
fields?:
|
|
461
|
+
fields?:
|
|
462
|
+
string;
|
|
351
463
|
/** 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. */
|
|
352
|
-
key?:
|
|
464
|
+
key?:
|
|
465
|
+
string;
|
|
353
466
|
/** OAuth 2.0 token for the current user. */
|
|
354
|
-
oauth_token?:
|
|
467
|
+
oauth_token?:
|
|
468
|
+
string;
|
|
355
469
|
/** The maximum number of returned processes per page of results. Defaults to 50. */
|
|
356
|
-
pageSize?:
|
|
470
|
+
pageSize?:
|
|
471
|
+
number;
|
|
357
472
|
/** The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from a previous response. */
|
|
358
|
-
pageToken?:
|
|
473
|
+
pageToken?:
|
|
474
|
+
string;
|
|
359
475
|
/** Returns response with indentations and line breaks. */
|
|
360
|
-
prettyPrint?:
|
|
476
|
+
prettyPrint?:
|
|
477
|
+
boolean;
|
|
361
478
|
/** 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. */
|
|
362
|
-
quotaUser?:
|
|
479
|
+
quotaUser?:
|
|
480
|
+
string;
|
|
363
481
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
364
|
-
upload_protocol?:
|
|
482
|
+
upload_protocol?:
|
|
483
|
+
string;
|
|
365
484
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
366
|
-
uploadType?:
|
|
485
|
+
uploadType?:
|
|
486
|
+
string;
|
|
367
487
|
/** Optional field used to limit returned processes to those originating from projects with a specific deployment ID. */
|
|
368
|
-
"userProcessFilter.deploymentId"?:
|
|
488
|
+
"userProcessFilter.deploymentId"?:
|
|
489
|
+
string;
|
|
369
490
|
/** Optional field used to limit returned processes to those that completed on or before the given timestamp. */
|
|
370
|
-
"userProcessFilter.endTime"?:
|
|
491
|
+
"userProcessFilter.endTime"?:
|
|
492
|
+
string;
|
|
371
493
|
/** Optional field used to limit returned processes to those originating from a script function with the given function name. */
|
|
372
|
-
"userProcessFilter.functionName"?:
|
|
494
|
+
"userProcessFilter.functionName"?:
|
|
495
|
+
string;
|
|
373
496
|
/** Optional field used to limit returned processes to those originating from projects with project names containing a specific string. */
|
|
374
|
-
"userProcessFilter.projectName"?:
|
|
497
|
+
"userProcessFilter.projectName"?:
|
|
498
|
+
string;
|
|
375
499
|
/** Optional field used to limit returned processes to those originating from projects with a specific script ID. */
|
|
376
|
-
"userProcessFilter.scriptId"?:
|
|
500
|
+
"userProcessFilter.scriptId"?:
|
|
501
|
+
string;
|
|
377
502
|
/** Optional field used to limit returned processes to those that were started on or after the given timestamp. */
|
|
378
|
-
"userProcessFilter.startTime"?:
|
|
503
|
+
"userProcessFilter.startTime"?:
|
|
504
|
+
string;
|
|
379
505
|
/** Optional field used to limit returned processes to those having one of the specified process statuses. */
|
|
380
|
-
"userProcessFilter.statuses"?:
|
|
506
|
+
"userProcessFilter.statuses"?:
|
|
507
|
+
string | string[];
|
|
381
508
|
/** Optional field used to limit returned processes to those having one of the specified process types. */
|
|
382
|
-
"userProcessFilter.types"?:
|
|
509
|
+
"userProcessFilter.types"?:
|
|
510
|
+
string | string[];
|
|
383
511
|
/** Optional field used to limit returned processes to those having one of the specified user access levels. */
|
|
384
|
-
"userProcessFilter.userAccessLevels"?:
|
|
512
|
+
"userProcessFilter.userAccessLevels"?:
|
|
513
|
+
string | string[];
|
|
385
514
|
}): Request<ListUserProcessesResponse>;
|
|
386
515
|
/** List information about a script's executed processes, such as process type and current status. */
|
|
387
516
|
listScriptProcesses(request?: {
|
|
388
517
|
/** V1 error format. */
|
|
389
|
-
"$.xgafv"?:
|
|
518
|
+
"$.xgafv"?:
|
|
519
|
+
string;
|
|
390
520
|
/** OAuth access token. */
|
|
391
|
-
access_token?:
|
|
521
|
+
access_token?:
|
|
522
|
+
string;
|
|
392
523
|
/** Data format for response. */
|
|
393
|
-
alt?:
|
|
524
|
+
alt?:
|
|
525
|
+
string;
|
|
394
526
|
/** JSONP */
|
|
395
|
-
callback?:
|
|
527
|
+
callback?:
|
|
528
|
+
string;
|
|
396
529
|
/** Selector specifying which fields to include in a partial response. */
|
|
397
|
-
fields?:
|
|
530
|
+
fields?:
|
|
531
|
+
string;
|
|
398
532
|
/** 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. */
|
|
399
|
-
key?:
|
|
533
|
+
key?:
|
|
534
|
+
string;
|
|
400
535
|
/** OAuth 2.0 token for the current user. */
|
|
401
|
-
oauth_token?:
|
|
536
|
+
oauth_token?:
|
|
537
|
+
string;
|
|
402
538
|
/** The maximum number of returned processes per page of results. Defaults to 50. */
|
|
403
|
-
pageSize?:
|
|
539
|
+
pageSize?:
|
|
540
|
+
number;
|
|
404
541
|
/** The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from a previous response. */
|
|
405
|
-
pageToken?:
|
|
542
|
+
pageToken?:
|
|
543
|
+
string;
|
|
406
544
|
/** Returns response with indentations and line breaks. */
|
|
407
|
-
prettyPrint?:
|
|
545
|
+
prettyPrint?:
|
|
546
|
+
boolean;
|
|
408
547
|
/** 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. */
|
|
409
|
-
quotaUser?:
|
|
548
|
+
quotaUser?:
|
|
549
|
+
string;
|
|
410
550
|
/** The script ID of the project whose processes are listed. */
|
|
411
|
-
scriptId?:
|
|
551
|
+
scriptId?:
|
|
552
|
+
string;
|
|
412
553
|
/** Optional field used to limit returned processes to those originating from projects with a specific deployment ID. */
|
|
413
|
-
"scriptProcessFilter.deploymentId"?:
|
|
554
|
+
"scriptProcessFilter.deploymentId"?:
|
|
555
|
+
string;
|
|
414
556
|
/** Optional field used to limit returned processes to those that completed on or before the given timestamp. */
|
|
415
|
-
"scriptProcessFilter.endTime"?:
|
|
557
|
+
"scriptProcessFilter.endTime"?:
|
|
558
|
+
string;
|
|
416
559
|
/** Optional field used to limit returned processes to those originating from a script function with the given function name. */
|
|
417
|
-
"scriptProcessFilter.functionName"?:
|
|
560
|
+
"scriptProcessFilter.functionName"?:
|
|
561
|
+
string;
|
|
418
562
|
/** Optional field used to limit returned processes to those that were started on or after the given timestamp. */
|
|
419
|
-
"scriptProcessFilter.startTime"?:
|
|
563
|
+
"scriptProcessFilter.startTime"?:
|
|
564
|
+
string;
|
|
420
565
|
/** Optional field used to limit returned processes to those having one of the specified process statuses. */
|
|
421
|
-
"scriptProcessFilter.statuses"?:
|
|
566
|
+
"scriptProcessFilter.statuses"?:
|
|
567
|
+
string | string[];
|
|
422
568
|
/** Optional field used to limit returned processes to those having one of the specified process types. */
|
|
423
|
-
"scriptProcessFilter.types"?:
|
|
569
|
+
"scriptProcessFilter.types"?:
|
|
570
|
+
string | string[];
|
|
424
571
|
/** Optional field used to limit returned processes to those having one of the specified user access levels. */
|
|
425
|
-
"scriptProcessFilter.userAccessLevels"?:
|
|
572
|
+
"scriptProcessFilter.userAccessLevels"?:
|
|
573
|
+
string | string[];
|
|
426
574
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
427
|
-
upload_protocol?:
|
|
575
|
+
upload_protocol?:
|
|
576
|
+
string;
|
|
428
577
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
429
|
-
uploadType?:
|
|
578
|
+
uploadType?:
|
|
579
|
+
string;
|
|
430
580
|
}): Request<ListScriptProcessesResponse>;
|
|
431
581
|
}
|
|
432
582
|
interface DeploymentsResource {
|
|
433
583
|
/** Creates a deployment of an Apps Script project. */
|
|
434
584
|
create(request: {
|
|
435
585
|
/** V1 error format. */
|
|
436
|
-
"$.xgafv"?:
|
|
586
|
+
"$.xgafv"?:
|
|
587
|
+
string;
|
|
437
588
|
/** OAuth access token. */
|
|
438
|
-
access_token?:
|
|
589
|
+
access_token?:
|
|
590
|
+
string;
|
|
439
591
|
/** Data format for response. */
|
|
440
|
-
alt?:
|
|
592
|
+
alt?:
|
|
593
|
+
string;
|
|
441
594
|
/** JSONP */
|
|
442
|
-
callback?:
|
|
595
|
+
callback?:
|
|
596
|
+
string;
|
|
443
597
|
/** Selector specifying which fields to include in a partial response. */
|
|
444
|
-
fields?:
|
|
598
|
+
fields?:
|
|
599
|
+
string;
|
|
445
600
|
/** 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. */
|
|
446
|
-
key?:
|
|
601
|
+
key?:
|
|
602
|
+
string;
|
|
447
603
|
/** OAuth 2.0 token for the current user. */
|
|
448
|
-
oauth_token?:
|
|
604
|
+
oauth_token?:
|
|
605
|
+
string;
|
|
449
606
|
/** Returns response with indentations and line breaks. */
|
|
450
|
-
prettyPrint?:
|
|
607
|
+
prettyPrint?:
|
|
608
|
+
boolean;
|
|
451
609
|
/** 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. */
|
|
452
|
-
quotaUser?:
|
|
610
|
+
quotaUser?:
|
|
611
|
+
string;
|
|
453
612
|
/** The script project's Drive ID. */
|
|
454
|
-
scriptId:
|
|
613
|
+
scriptId:
|
|
614
|
+
string;
|
|
455
615
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
456
|
-
upload_protocol?:
|
|
616
|
+
upload_protocol?:
|
|
617
|
+
string;
|
|
457
618
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
458
|
-
uploadType?:
|
|
619
|
+
uploadType?:
|
|
620
|
+
string;
|
|
459
621
|
/** Request body */
|
|
460
|
-
resource:
|
|
622
|
+
resource:
|
|
623
|
+
DeploymentConfig;
|
|
461
624
|
}): Request<Deployment>;
|
|
462
625
|
create(request: {
|
|
463
626
|
/** V1 error format. */
|
|
464
|
-
"$.xgafv"?:
|
|
627
|
+
"$.xgafv"?:
|
|
628
|
+
string;
|
|
465
629
|
/** OAuth access token. */
|
|
466
|
-
access_token?:
|
|
630
|
+
access_token?:
|
|
631
|
+
string;
|
|
467
632
|
/** Data format for response. */
|
|
468
|
-
alt?:
|
|
633
|
+
alt?:
|
|
634
|
+
string;
|
|
469
635
|
/** JSONP */
|
|
470
|
-
callback?:
|
|
636
|
+
callback?:
|
|
637
|
+
string;
|
|
471
638
|
/** Selector specifying which fields to include in a partial response. */
|
|
472
|
-
fields?:
|
|
639
|
+
fields?:
|
|
640
|
+
string;
|
|
473
641
|
/** 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. */
|
|
474
|
-
key?:
|
|
642
|
+
key?:
|
|
643
|
+
string;
|
|
475
644
|
/** OAuth 2.0 token for the current user. */
|
|
476
|
-
oauth_token?:
|
|
645
|
+
oauth_token?:
|
|
646
|
+
string;
|
|
477
647
|
/** Returns response with indentations and line breaks. */
|
|
478
|
-
prettyPrint?:
|
|
648
|
+
prettyPrint?:
|
|
649
|
+
boolean;
|
|
479
650
|
/** 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. */
|
|
480
|
-
quotaUser?:
|
|
651
|
+
quotaUser?:
|
|
652
|
+
string;
|
|
481
653
|
/** The script project's Drive ID. */
|
|
482
|
-
scriptId:
|
|
654
|
+
scriptId:
|
|
655
|
+
string;
|
|
483
656
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
484
|
-
upload_protocol?:
|
|
657
|
+
upload_protocol?:
|
|
658
|
+
string;
|
|
485
659
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
486
|
-
uploadType?:
|
|
660
|
+
uploadType?:
|
|
661
|
+
string;
|
|
487
662
|
},
|
|
488
663
|
body: DeploymentConfig): Request<Deployment>;
|
|
489
664
|
/** Deletes a deployment of an Apps Script project. */
|
|
490
665
|
delete(request?: {
|
|
491
666
|
/** V1 error format. */
|
|
492
|
-
"$.xgafv"?:
|
|
667
|
+
"$.xgafv"?:
|
|
668
|
+
string;
|
|
493
669
|
/** OAuth access token. */
|
|
494
|
-
access_token?:
|
|
670
|
+
access_token?:
|
|
671
|
+
string;
|
|
495
672
|
/** Data format for response. */
|
|
496
|
-
alt?:
|
|
673
|
+
alt?:
|
|
674
|
+
string;
|
|
497
675
|
/** JSONP */
|
|
498
|
-
callback?:
|
|
676
|
+
callback?:
|
|
677
|
+
string;
|
|
499
678
|
/** The deployment ID to be undeployed. */
|
|
500
|
-
deploymentId:
|
|
679
|
+
deploymentId:
|
|
680
|
+
string;
|
|
501
681
|
/** Selector specifying which fields to include in a partial response. */
|
|
502
|
-
fields?:
|
|
682
|
+
fields?:
|
|
683
|
+
string;
|
|
503
684
|
/** 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. */
|
|
504
|
-
key?:
|
|
685
|
+
key?:
|
|
686
|
+
string;
|
|
505
687
|
/** OAuth 2.0 token for the current user. */
|
|
506
|
-
oauth_token?:
|
|
688
|
+
oauth_token?:
|
|
689
|
+
string;
|
|
507
690
|
/** Returns response with indentations and line breaks. */
|
|
508
|
-
prettyPrint?:
|
|
691
|
+
prettyPrint?:
|
|
692
|
+
boolean;
|
|
509
693
|
/** 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. */
|
|
510
|
-
quotaUser?:
|
|
694
|
+
quotaUser?:
|
|
695
|
+
string;
|
|
511
696
|
/** The script project's Drive ID. */
|
|
512
|
-
scriptId:
|
|
697
|
+
scriptId:
|
|
698
|
+
string;
|
|
513
699
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
514
|
-
upload_protocol?:
|
|
700
|
+
upload_protocol?:
|
|
701
|
+
string;
|
|
515
702
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
516
|
-
uploadType?:
|
|
703
|
+
uploadType?:
|
|
704
|
+
string;
|
|
517
705
|
}): Request<{}>;
|
|
518
706
|
/** Gets a deployment of an Apps Script project. */
|
|
519
707
|
get(request?: {
|
|
520
708
|
/** V1 error format. */
|
|
521
|
-
"$.xgafv"?:
|
|
709
|
+
"$.xgafv"?:
|
|
710
|
+
string;
|
|
522
711
|
/** OAuth access token. */
|
|
523
|
-
access_token?:
|
|
712
|
+
access_token?:
|
|
713
|
+
string;
|
|
524
714
|
/** Data format for response. */
|
|
525
|
-
alt?:
|
|
715
|
+
alt?:
|
|
716
|
+
string;
|
|
526
717
|
/** JSONP */
|
|
527
|
-
callback?:
|
|
718
|
+
callback?:
|
|
719
|
+
string;
|
|
528
720
|
/** The deployment ID. */
|
|
529
|
-
deploymentId:
|
|
721
|
+
deploymentId:
|
|
722
|
+
string;
|
|
530
723
|
/** Selector specifying which fields to include in a partial response. */
|
|
531
|
-
fields?:
|
|
724
|
+
fields?:
|
|
725
|
+
string;
|
|
532
726
|
/** 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. */
|
|
533
|
-
key?:
|
|
727
|
+
key?:
|
|
728
|
+
string;
|
|
534
729
|
/** OAuth 2.0 token for the current user. */
|
|
535
|
-
oauth_token?:
|
|
730
|
+
oauth_token?:
|
|
731
|
+
string;
|
|
536
732
|
/** Returns response with indentations and line breaks. */
|
|
537
|
-
prettyPrint?:
|
|
733
|
+
prettyPrint?:
|
|
734
|
+
boolean;
|
|
538
735
|
/** 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. */
|
|
539
|
-
quotaUser?:
|
|
736
|
+
quotaUser?:
|
|
737
|
+
string;
|
|
540
738
|
/** The script project's Drive ID. */
|
|
541
|
-
scriptId:
|
|
739
|
+
scriptId:
|
|
740
|
+
string;
|
|
542
741
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
543
|
-
upload_protocol?:
|
|
742
|
+
upload_protocol?:
|
|
743
|
+
string;
|
|
544
744
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
545
|
-
uploadType?:
|
|
745
|
+
uploadType?:
|
|
746
|
+
string;
|
|
546
747
|
}): Request<Deployment>;
|
|
547
748
|
/** Lists the deployments of an Apps Script project. */
|
|
548
749
|
list(request?: {
|
|
549
750
|
/** V1 error format. */
|
|
550
|
-
"$.xgafv"?:
|
|
751
|
+
"$.xgafv"?:
|
|
752
|
+
string;
|
|
551
753
|
/** OAuth access token. */
|
|
552
|
-
access_token?:
|
|
754
|
+
access_token?:
|
|
755
|
+
string;
|
|
553
756
|
/** Data format for response. */
|
|
554
|
-
alt?:
|
|
757
|
+
alt?:
|
|
758
|
+
string;
|
|
555
759
|
/** JSONP */
|
|
556
|
-
callback?:
|
|
760
|
+
callback?:
|
|
761
|
+
string;
|
|
557
762
|
/** Selector specifying which fields to include in a partial response. */
|
|
558
|
-
fields?:
|
|
763
|
+
fields?:
|
|
764
|
+
string;
|
|
559
765
|
/** 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. */
|
|
560
|
-
key?:
|
|
766
|
+
key?:
|
|
767
|
+
string;
|
|
561
768
|
/** OAuth 2.0 token for the current user. */
|
|
562
|
-
oauth_token?:
|
|
769
|
+
oauth_token?:
|
|
770
|
+
string;
|
|
563
771
|
/** The maximum number of deployments on each returned page. Defaults to 50. */
|
|
564
|
-
pageSize?:
|
|
772
|
+
pageSize?:
|
|
773
|
+
number;
|
|
565
774
|
/** The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from a previous response. */
|
|
566
|
-
pageToken?:
|
|
775
|
+
pageToken?:
|
|
776
|
+
string;
|
|
567
777
|
/** Returns response with indentations and line breaks. */
|
|
568
|
-
prettyPrint?:
|
|
778
|
+
prettyPrint?:
|
|
779
|
+
boolean;
|
|
569
780
|
/** 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. */
|
|
570
|
-
quotaUser?:
|
|
781
|
+
quotaUser?:
|
|
782
|
+
string;
|
|
571
783
|
/** The script project's Drive ID. */
|
|
572
|
-
scriptId:
|
|
784
|
+
scriptId:
|
|
785
|
+
string;
|
|
573
786
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
574
|
-
upload_protocol?:
|
|
787
|
+
upload_protocol?:
|
|
788
|
+
string;
|
|
575
789
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
576
|
-
uploadType?:
|
|
790
|
+
uploadType?:
|
|
791
|
+
string;
|
|
577
792
|
}): Request<ListDeploymentsResponse>;
|
|
578
793
|
/** Updates a deployment of an Apps Script project. */
|
|
579
794
|
update(request: {
|
|
580
795
|
/** V1 error format. */
|
|
581
|
-
"$.xgafv"?:
|
|
796
|
+
"$.xgafv"?:
|
|
797
|
+
string;
|
|
582
798
|
/** OAuth access token. */
|
|
583
|
-
access_token?:
|
|
799
|
+
access_token?:
|
|
800
|
+
string;
|
|
584
801
|
/** Data format for response. */
|
|
585
|
-
alt?:
|
|
802
|
+
alt?:
|
|
803
|
+
string;
|
|
586
804
|
/** JSONP */
|
|
587
|
-
callback?:
|
|
805
|
+
callback?:
|
|
806
|
+
string;
|
|
588
807
|
/** The deployment ID for this deployment. */
|
|
589
|
-
deploymentId:
|
|
808
|
+
deploymentId:
|
|
809
|
+
string;
|
|
590
810
|
/** Selector specifying which fields to include in a partial response. */
|
|
591
|
-
fields?:
|
|
811
|
+
fields?:
|
|
812
|
+
string;
|
|
592
813
|
/** 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. */
|
|
593
|
-
key?:
|
|
814
|
+
key?:
|
|
815
|
+
string;
|
|
594
816
|
/** OAuth 2.0 token for the current user. */
|
|
595
|
-
oauth_token?:
|
|
817
|
+
oauth_token?:
|
|
818
|
+
string;
|
|
596
819
|
/** Returns response with indentations and line breaks. */
|
|
597
|
-
prettyPrint?:
|
|
820
|
+
prettyPrint?:
|
|
821
|
+
boolean;
|
|
598
822
|
/** 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. */
|
|
599
|
-
quotaUser?:
|
|
823
|
+
quotaUser?:
|
|
824
|
+
string;
|
|
600
825
|
/** The script project's Drive ID. */
|
|
601
|
-
scriptId:
|
|
826
|
+
scriptId:
|
|
827
|
+
string;
|
|
602
828
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
603
|
-
upload_protocol?:
|
|
829
|
+
upload_protocol?:
|
|
830
|
+
string;
|
|
604
831
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
605
|
-
uploadType?:
|
|
832
|
+
uploadType?:
|
|
833
|
+
string;
|
|
606
834
|
/** Request body */
|
|
607
|
-
resource:
|
|
835
|
+
resource:
|
|
836
|
+
UpdateDeploymentRequest;
|
|
608
837
|
}): Request<Deployment>;
|
|
609
838
|
update(request: {
|
|
610
839
|
/** V1 error format. */
|
|
611
|
-
"$.xgafv"?:
|
|
840
|
+
"$.xgafv"?:
|
|
841
|
+
string;
|
|
612
842
|
/** OAuth access token. */
|
|
613
|
-
access_token?:
|
|
843
|
+
access_token?:
|
|
844
|
+
string;
|
|
614
845
|
/** Data format for response. */
|
|
615
|
-
alt?:
|
|
846
|
+
alt?:
|
|
847
|
+
string;
|
|
616
848
|
/** JSONP */
|
|
617
|
-
callback?:
|
|
849
|
+
callback?:
|
|
850
|
+
string;
|
|
618
851
|
/** The deployment ID for this deployment. */
|
|
619
|
-
deploymentId:
|
|
852
|
+
deploymentId:
|
|
853
|
+
string;
|
|
620
854
|
/** Selector specifying which fields to include in a partial response. */
|
|
621
|
-
fields?:
|
|
855
|
+
fields?:
|
|
856
|
+
string;
|
|
622
857
|
/** 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. */
|
|
623
|
-
key?:
|
|
858
|
+
key?:
|
|
859
|
+
string;
|
|
624
860
|
/** OAuth 2.0 token for the current user. */
|
|
625
|
-
oauth_token?:
|
|
861
|
+
oauth_token?:
|
|
862
|
+
string;
|
|
626
863
|
/** Returns response with indentations and line breaks. */
|
|
627
|
-
prettyPrint?:
|
|
864
|
+
prettyPrint?:
|
|
865
|
+
boolean;
|
|
628
866
|
/** 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. */
|
|
629
|
-
quotaUser?:
|
|
867
|
+
quotaUser?:
|
|
868
|
+
string;
|
|
630
869
|
/** The script project's Drive ID. */
|
|
631
|
-
scriptId:
|
|
870
|
+
scriptId:
|
|
871
|
+
string;
|
|
632
872
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
633
|
-
upload_protocol?:
|
|
873
|
+
upload_protocol?:
|
|
874
|
+
string;
|
|
634
875
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
635
|
-
uploadType?:
|
|
876
|
+
uploadType?:
|
|
877
|
+
string;
|
|
636
878
|
},
|
|
637
879
|
body: UpdateDeploymentRequest): Request<Deployment>;
|
|
638
880
|
}
|
|
@@ -640,259 +882,373 @@ declare namespace gapi.client {
|
|
|
640
882
|
/** Creates a new immutable version using the current code, with a unique version number. */
|
|
641
883
|
create(request: {
|
|
642
884
|
/** V1 error format. */
|
|
643
|
-
"$.xgafv"?:
|
|
885
|
+
"$.xgafv"?:
|
|
886
|
+
string;
|
|
644
887
|
/** OAuth access token. */
|
|
645
|
-
access_token?:
|
|
888
|
+
access_token?:
|
|
889
|
+
string;
|
|
646
890
|
/** Data format for response. */
|
|
647
|
-
alt?:
|
|
891
|
+
alt?:
|
|
892
|
+
string;
|
|
648
893
|
/** JSONP */
|
|
649
|
-
callback?:
|
|
894
|
+
callback?:
|
|
895
|
+
string;
|
|
650
896
|
/** Selector specifying which fields to include in a partial response. */
|
|
651
|
-
fields?:
|
|
897
|
+
fields?:
|
|
898
|
+
string;
|
|
652
899
|
/** 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. */
|
|
653
|
-
key?:
|
|
900
|
+
key?:
|
|
901
|
+
string;
|
|
654
902
|
/** OAuth 2.0 token for the current user. */
|
|
655
|
-
oauth_token?:
|
|
903
|
+
oauth_token?:
|
|
904
|
+
string;
|
|
656
905
|
/** Returns response with indentations and line breaks. */
|
|
657
|
-
prettyPrint?:
|
|
906
|
+
prettyPrint?:
|
|
907
|
+
boolean;
|
|
658
908
|
/** 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. */
|
|
659
|
-
quotaUser?:
|
|
909
|
+
quotaUser?:
|
|
910
|
+
string;
|
|
660
911
|
/** The script project's Drive ID. */
|
|
661
|
-
scriptId:
|
|
912
|
+
scriptId:
|
|
913
|
+
string;
|
|
662
914
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
663
|
-
upload_protocol?:
|
|
915
|
+
upload_protocol?:
|
|
916
|
+
string;
|
|
664
917
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
665
|
-
uploadType?:
|
|
918
|
+
uploadType?:
|
|
919
|
+
string;
|
|
666
920
|
/** Request body */
|
|
667
|
-
resource:
|
|
921
|
+
resource:
|
|
922
|
+
Version;
|
|
668
923
|
}): Request<Version>;
|
|
669
924
|
create(request: {
|
|
670
925
|
/** V1 error format. */
|
|
671
|
-
"$.xgafv"?:
|
|
926
|
+
"$.xgafv"?:
|
|
927
|
+
string;
|
|
672
928
|
/** OAuth access token. */
|
|
673
|
-
access_token?:
|
|
929
|
+
access_token?:
|
|
930
|
+
string;
|
|
674
931
|
/** Data format for response. */
|
|
675
|
-
alt?:
|
|
932
|
+
alt?:
|
|
933
|
+
string;
|
|
676
934
|
/** JSONP */
|
|
677
|
-
callback?:
|
|
935
|
+
callback?:
|
|
936
|
+
string;
|
|
678
937
|
/** Selector specifying which fields to include in a partial response. */
|
|
679
|
-
fields?:
|
|
938
|
+
fields?:
|
|
939
|
+
string;
|
|
680
940
|
/** 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. */
|
|
681
|
-
key?:
|
|
941
|
+
key?:
|
|
942
|
+
string;
|
|
682
943
|
/** OAuth 2.0 token for the current user. */
|
|
683
|
-
oauth_token?:
|
|
944
|
+
oauth_token?:
|
|
945
|
+
string;
|
|
684
946
|
/** Returns response with indentations and line breaks. */
|
|
685
|
-
prettyPrint?:
|
|
947
|
+
prettyPrint?:
|
|
948
|
+
boolean;
|
|
686
949
|
/** 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. */
|
|
687
|
-
quotaUser?:
|
|
950
|
+
quotaUser?:
|
|
951
|
+
string;
|
|
688
952
|
/** The script project's Drive ID. */
|
|
689
|
-
scriptId:
|
|
953
|
+
scriptId:
|
|
954
|
+
string;
|
|
690
955
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
691
|
-
upload_protocol?:
|
|
956
|
+
upload_protocol?:
|
|
957
|
+
string;
|
|
692
958
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
693
|
-
uploadType?:
|
|
959
|
+
uploadType?:
|
|
960
|
+
string;
|
|
694
961
|
},
|
|
695
962
|
body: Version): Request<Version>;
|
|
696
963
|
/** Gets a version of a script project. */
|
|
697
964
|
get(request?: {
|
|
698
965
|
/** V1 error format. */
|
|
699
|
-
"$.xgafv"?:
|
|
966
|
+
"$.xgafv"?:
|
|
967
|
+
string;
|
|
700
968
|
/** OAuth access token. */
|
|
701
|
-
access_token?:
|
|
969
|
+
access_token?:
|
|
970
|
+
string;
|
|
702
971
|
/** Data format for response. */
|
|
703
|
-
alt?:
|
|
972
|
+
alt?:
|
|
973
|
+
string;
|
|
704
974
|
/** JSONP */
|
|
705
|
-
callback?:
|
|
975
|
+
callback?:
|
|
976
|
+
string;
|
|
706
977
|
/** Selector specifying which fields to include in a partial response. */
|
|
707
|
-
fields?:
|
|
978
|
+
fields?:
|
|
979
|
+
string;
|
|
708
980
|
/** 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. */
|
|
709
|
-
key?:
|
|
981
|
+
key?:
|
|
982
|
+
string;
|
|
710
983
|
/** OAuth 2.0 token for the current user. */
|
|
711
|
-
oauth_token?:
|
|
984
|
+
oauth_token?:
|
|
985
|
+
string;
|
|
712
986
|
/** Returns response with indentations and line breaks. */
|
|
713
|
-
prettyPrint?:
|
|
987
|
+
prettyPrint?:
|
|
988
|
+
boolean;
|
|
714
989
|
/** 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. */
|
|
715
|
-
quotaUser?:
|
|
990
|
+
quotaUser?:
|
|
991
|
+
string;
|
|
716
992
|
/** The script project's Drive ID. */
|
|
717
|
-
scriptId:
|
|
993
|
+
scriptId:
|
|
994
|
+
string;
|
|
718
995
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
719
|
-
upload_protocol?:
|
|
996
|
+
upload_protocol?:
|
|
997
|
+
string;
|
|
720
998
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
721
|
-
uploadType?:
|
|
999
|
+
uploadType?:
|
|
1000
|
+
string;
|
|
722
1001
|
/** The version number. */
|
|
723
|
-
versionNumber:
|
|
1002
|
+
versionNumber:
|
|
1003
|
+
number;
|
|
724
1004
|
}): Request<Version>;
|
|
725
1005
|
/** List the versions of a script project. */
|
|
726
1006
|
list(request?: {
|
|
727
1007
|
/** V1 error format. */
|
|
728
|
-
"$.xgafv"?:
|
|
1008
|
+
"$.xgafv"?:
|
|
1009
|
+
string;
|
|
729
1010
|
/** OAuth access token. */
|
|
730
|
-
access_token?:
|
|
1011
|
+
access_token?:
|
|
1012
|
+
string;
|
|
731
1013
|
/** Data format for response. */
|
|
732
|
-
alt?:
|
|
1014
|
+
alt?:
|
|
1015
|
+
string;
|
|
733
1016
|
/** JSONP */
|
|
734
|
-
callback?:
|
|
1017
|
+
callback?:
|
|
1018
|
+
string;
|
|
735
1019
|
/** Selector specifying which fields to include in a partial response. */
|
|
736
|
-
fields?:
|
|
1020
|
+
fields?:
|
|
1021
|
+
string;
|
|
737
1022
|
/** 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. */
|
|
738
|
-
key?:
|
|
1023
|
+
key?:
|
|
1024
|
+
string;
|
|
739
1025
|
/** OAuth 2.0 token for the current user. */
|
|
740
|
-
oauth_token?:
|
|
1026
|
+
oauth_token?:
|
|
1027
|
+
string;
|
|
741
1028
|
/** The maximum number of versions on each returned page. Defaults to 50. */
|
|
742
|
-
pageSize?:
|
|
1029
|
+
pageSize?:
|
|
1030
|
+
number;
|
|
743
1031
|
/** The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from a previous response. */
|
|
744
|
-
pageToken?:
|
|
1032
|
+
pageToken?:
|
|
1033
|
+
string;
|
|
745
1034
|
/** Returns response with indentations and line breaks. */
|
|
746
|
-
prettyPrint?:
|
|
1035
|
+
prettyPrint?:
|
|
1036
|
+
boolean;
|
|
747
1037
|
/** 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. */
|
|
748
|
-
quotaUser?:
|
|
1038
|
+
quotaUser?:
|
|
1039
|
+
string;
|
|
749
1040
|
/** The script project's Drive ID. */
|
|
750
|
-
scriptId:
|
|
1041
|
+
scriptId:
|
|
1042
|
+
string;
|
|
751
1043
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
752
|
-
upload_protocol?:
|
|
1044
|
+
upload_protocol?:
|
|
1045
|
+
string;
|
|
753
1046
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
754
|
-
uploadType?:
|
|
1047
|
+
uploadType?:
|
|
1048
|
+
string;
|
|
755
1049
|
}): Request<ListVersionsResponse>;
|
|
756
1050
|
}
|
|
757
1051
|
interface ProjectsResource {
|
|
758
1052
|
/** Creates a new, empty script project with no script files and a base manifest file. */
|
|
759
1053
|
create(request: {
|
|
760
1054
|
/** V1 error format. */
|
|
761
|
-
"$.xgafv"?:
|
|
1055
|
+
"$.xgafv"?:
|
|
1056
|
+
string;
|
|
762
1057
|
/** OAuth access token. */
|
|
763
|
-
access_token?:
|
|
1058
|
+
access_token?:
|
|
1059
|
+
string;
|
|
764
1060
|
/** Data format for response. */
|
|
765
|
-
alt?:
|
|
1061
|
+
alt?:
|
|
1062
|
+
string;
|
|
766
1063
|
/** JSONP */
|
|
767
|
-
callback?:
|
|
1064
|
+
callback?:
|
|
1065
|
+
string;
|
|
768
1066
|
/** Selector specifying which fields to include in a partial response. */
|
|
769
|
-
fields?:
|
|
1067
|
+
fields?:
|
|
1068
|
+
string;
|
|
770
1069
|
/** 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. */
|
|
771
|
-
key?:
|
|
1070
|
+
key?:
|
|
1071
|
+
string;
|
|
772
1072
|
/** OAuth 2.0 token for the current user. */
|
|
773
|
-
oauth_token?:
|
|
1073
|
+
oauth_token?:
|
|
1074
|
+
string;
|
|
774
1075
|
/** Returns response with indentations and line breaks. */
|
|
775
|
-
prettyPrint?:
|
|
1076
|
+
prettyPrint?:
|
|
1077
|
+
boolean;
|
|
776
1078
|
/** 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. */
|
|
777
|
-
quotaUser?:
|
|
1079
|
+
quotaUser?:
|
|
1080
|
+
string;
|
|
778
1081
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
779
|
-
upload_protocol?:
|
|
1082
|
+
upload_protocol?:
|
|
1083
|
+
string;
|
|
780
1084
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
781
|
-
uploadType?:
|
|
1085
|
+
uploadType?:
|
|
1086
|
+
string;
|
|
782
1087
|
/** Request body */
|
|
783
|
-
resource:
|
|
1088
|
+
resource:
|
|
1089
|
+
CreateProjectRequest;
|
|
784
1090
|
}): Request<Project>;
|
|
785
1091
|
create(request: {
|
|
786
1092
|
/** V1 error format. */
|
|
787
|
-
"$.xgafv"?:
|
|
1093
|
+
"$.xgafv"?:
|
|
1094
|
+
string;
|
|
788
1095
|
/** OAuth access token. */
|
|
789
|
-
access_token?:
|
|
1096
|
+
access_token?:
|
|
1097
|
+
string;
|
|
790
1098
|
/** Data format for response. */
|
|
791
|
-
alt?:
|
|
1099
|
+
alt?:
|
|
1100
|
+
string;
|
|
792
1101
|
/** JSONP */
|
|
793
|
-
callback?:
|
|
1102
|
+
callback?:
|
|
1103
|
+
string;
|
|
794
1104
|
/** Selector specifying which fields to include in a partial response. */
|
|
795
|
-
fields?:
|
|
1105
|
+
fields?:
|
|
1106
|
+
string;
|
|
796
1107
|
/** 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. */
|
|
797
|
-
key?:
|
|
1108
|
+
key?:
|
|
1109
|
+
string;
|
|
798
1110
|
/** OAuth 2.0 token for the current user. */
|
|
799
|
-
oauth_token?:
|
|
1111
|
+
oauth_token?:
|
|
1112
|
+
string;
|
|
800
1113
|
/** Returns response with indentations and line breaks. */
|
|
801
|
-
prettyPrint?:
|
|
1114
|
+
prettyPrint?:
|
|
1115
|
+
boolean;
|
|
802
1116
|
/** 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. */
|
|
803
|
-
quotaUser?:
|
|
1117
|
+
quotaUser?:
|
|
1118
|
+
string;
|
|
804
1119
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
805
|
-
upload_protocol?:
|
|
1120
|
+
upload_protocol?:
|
|
1121
|
+
string;
|
|
806
1122
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
807
|
-
uploadType?:
|
|
1123
|
+
uploadType?:
|
|
1124
|
+
string;
|
|
808
1125
|
},
|
|
809
1126
|
body: CreateProjectRequest): Request<Project>;
|
|
810
1127
|
/** Gets a script project's metadata. */
|
|
811
1128
|
get(request?: {
|
|
812
1129
|
/** V1 error format. */
|
|
813
|
-
"$.xgafv"?:
|
|
1130
|
+
"$.xgafv"?:
|
|
1131
|
+
string;
|
|
814
1132
|
/** OAuth access token. */
|
|
815
|
-
access_token?:
|
|
1133
|
+
access_token?:
|
|
1134
|
+
string;
|
|
816
1135
|
/** Data format for response. */
|
|
817
|
-
alt?:
|
|
1136
|
+
alt?:
|
|
1137
|
+
string;
|
|
818
1138
|
/** JSONP */
|
|
819
|
-
callback?:
|
|
1139
|
+
callback?:
|
|
1140
|
+
string;
|
|
820
1141
|
/** Selector specifying which fields to include in a partial response. */
|
|
821
|
-
fields?:
|
|
1142
|
+
fields?:
|
|
1143
|
+
string;
|
|
822
1144
|
/** 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. */
|
|
823
|
-
key?:
|
|
1145
|
+
key?:
|
|
1146
|
+
string;
|
|
824
1147
|
/** OAuth 2.0 token for the current user. */
|
|
825
|
-
oauth_token?:
|
|
1148
|
+
oauth_token?:
|
|
1149
|
+
string;
|
|
826
1150
|
/** Returns response with indentations and line breaks. */
|
|
827
|
-
prettyPrint?:
|
|
1151
|
+
prettyPrint?:
|
|
1152
|
+
boolean;
|
|
828
1153
|
/** 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. */
|
|
829
|
-
quotaUser?:
|
|
1154
|
+
quotaUser?:
|
|
1155
|
+
string;
|
|
830
1156
|
/** The script project's Drive ID. */
|
|
831
|
-
scriptId:
|
|
1157
|
+
scriptId:
|
|
1158
|
+
string;
|
|
832
1159
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
833
|
-
upload_protocol?:
|
|
1160
|
+
upload_protocol?:
|
|
1161
|
+
string;
|
|
834
1162
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
835
|
-
uploadType?:
|
|
1163
|
+
uploadType?:
|
|
1164
|
+
string;
|
|
836
1165
|
}): Request<Project>;
|
|
837
1166
|
/** Gets the content of the script project, including the code source and metadata for each script file. */
|
|
838
1167
|
getContent(request?: {
|
|
839
1168
|
/** V1 error format. */
|
|
840
|
-
"$.xgafv"?:
|
|
1169
|
+
"$.xgafv"?:
|
|
1170
|
+
string;
|
|
841
1171
|
/** OAuth access token. */
|
|
842
|
-
access_token?:
|
|
1172
|
+
access_token?:
|
|
1173
|
+
string;
|
|
843
1174
|
/** Data format for response. */
|
|
844
|
-
alt?:
|
|
1175
|
+
alt?:
|
|
1176
|
+
string;
|
|
845
1177
|
/** JSONP */
|
|
846
|
-
callback?:
|
|
1178
|
+
callback?:
|
|
1179
|
+
string;
|
|
847
1180
|
/** Selector specifying which fields to include in a partial response. */
|
|
848
|
-
fields?:
|
|
1181
|
+
fields?:
|
|
1182
|
+
string;
|
|
849
1183
|
/** 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. */
|
|
850
|
-
key?:
|
|
1184
|
+
key?:
|
|
1185
|
+
string;
|
|
851
1186
|
/** OAuth 2.0 token for the current user. */
|
|
852
|
-
oauth_token?:
|
|
1187
|
+
oauth_token?:
|
|
1188
|
+
string;
|
|
853
1189
|
/** Returns response with indentations and line breaks. */
|
|
854
|
-
prettyPrint?:
|
|
1190
|
+
prettyPrint?:
|
|
1191
|
+
boolean;
|
|
855
1192
|
/** 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. */
|
|
856
|
-
quotaUser?:
|
|
1193
|
+
quotaUser?:
|
|
1194
|
+
string;
|
|
857
1195
|
/** The script project's Drive ID. */
|
|
858
|
-
scriptId:
|
|
1196
|
+
scriptId:
|
|
1197
|
+
string;
|
|
859
1198
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
860
|
-
upload_protocol?:
|
|
1199
|
+
upload_protocol?:
|
|
1200
|
+
string;
|
|
861
1201
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
862
|
-
uploadType?:
|
|
1202
|
+
uploadType?:
|
|
1203
|
+
string;
|
|
863
1204
|
/** The version number of the project to retrieve. If not provided, the project's HEAD version is returned. */
|
|
864
|
-
versionNumber?:
|
|
1205
|
+
versionNumber?:
|
|
1206
|
+
number;
|
|
865
1207
|
}): Request<Content>;
|
|
866
1208
|
/** Get metrics data for scripts, such as number of executions and active users. */
|
|
867
1209
|
getMetrics(request?: {
|
|
868
1210
|
/** V1 error format. */
|
|
869
|
-
"$.xgafv"?:
|
|
1211
|
+
"$.xgafv"?:
|
|
1212
|
+
string;
|
|
870
1213
|
/** OAuth access token. */
|
|
871
|
-
access_token?:
|
|
1214
|
+
access_token?:
|
|
1215
|
+
string;
|
|
872
1216
|
/** Data format for response. */
|
|
873
|
-
alt?:
|
|
1217
|
+
alt?:
|
|
1218
|
+
string;
|
|
874
1219
|
/** JSONP */
|
|
875
|
-
callback?:
|
|
1220
|
+
callback?:
|
|
1221
|
+
string;
|
|
876
1222
|
/** Selector specifying which fields to include in a partial response. */
|
|
877
|
-
fields?:
|
|
1223
|
+
fields?:
|
|
1224
|
+
string;
|
|
878
1225
|
/** 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. */
|
|
879
|
-
key?:
|
|
1226
|
+
key?:
|
|
1227
|
+
string;
|
|
880
1228
|
/** Optional field indicating a specific deployment to retrieve metrics from. */
|
|
881
|
-
"metricsFilter.deploymentId"?:
|
|
1229
|
+
"metricsFilter.deploymentId"?:
|
|
1230
|
+
string;
|
|
882
1231
|
/** Required field indicating what granularity of metrics are returned. */
|
|
883
|
-
metricsGranularity?:
|
|
1232
|
+
metricsGranularity?:
|
|
1233
|
+
string;
|
|
884
1234
|
/** OAuth 2.0 token for the current user. */
|
|
885
|
-
oauth_token?:
|
|
1235
|
+
oauth_token?:
|
|
1236
|
+
string;
|
|
886
1237
|
/** Returns response with indentations and line breaks. */
|
|
887
|
-
prettyPrint?:
|
|
1238
|
+
prettyPrint?:
|
|
1239
|
+
boolean;
|
|
888
1240
|
/** 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. */
|
|
889
|
-
quotaUser?:
|
|
1241
|
+
quotaUser?:
|
|
1242
|
+
string;
|
|
890
1243
|
/** Required field indicating the script to get metrics for. */
|
|
891
|
-
scriptId:
|
|
1244
|
+
scriptId:
|
|
1245
|
+
string;
|
|
892
1246
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
893
|
-
upload_protocol?:
|
|
1247
|
+
upload_protocol?:
|
|
1248
|
+
string;
|
|
894
1249
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
895
|
-
uploadType?:
|
|
1250
|
+
uploadType?:
|
|
1251
|
+
string;
|
|
896
1252
|
}): Request<Metrics>;
|
|
897
1253
|
/**
|
|
898
1254
|
* Updates the content of the specified script project. This content is stored as the HEAD version, and is used when the script is executed as a trigger, in the script editor, in
|
|
@@ -900,61 +1256,88 @@ declare namespace gapi.client {
|
|
|
900
1256
|
*/
|
|
901
1257
|
updateContent(request: {
|
|
902
1258
|
/** V1 error format. */
|
|
903
|
-
"$.xgafv"?:
|
|
1259
|
+
"$.xgafv"?:
|
|
1260
|
+
string;
|
|
904
1261
|
/** OAuth access token. */
|
|
905
|
-
access_token?:
|
|
1262
|
+
access_token?:
|
|
1263
|
+
string;
|
|
906
1264
|
/** Data format for response. */
|
|
907
|
-
alt?:
|
|
1265
|
+
alt?:
|
|
1266
|
+
string;
|
|
908
1267
|
/** JSONP */
|
|
909
|
-
callback?:
|
|
1268
|
+
callback?:
|
|
1269
|
+
string;
|
|
910
1270
|
/** Selector specifying which fields to include in a partial response. */
|
|
911
|
-
fields?:
|
|
1271
|
+
fields?:
|
|
1272
|
+
string;
|
|
912
1273
|
/** 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. */
|
|
913
|
-
key?:
|
|
1274
|
+
key?:
|
|
1275
|
+
string;
|
|
914
1276
|
/** OAuth 2.0 token for the current user. */
|
|
915
|
-
oauth_token?:
|
|
1277
|
+
oauth_token?:
|
|
1278
|
+
string;
|
|
916
1279
|
/** Returns response with indentations and line breaks. */
|
|
917
|
-
prettyPrint?:
|
|
1280
|
+
prettyPrint?:
|
|
1281
|
+
boolean;
|
|
918
1282
|
/** 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. */
|
|
919
|
-
quotaUser?:
|
|
1283
|
+
quotaUser?:
|
|
1284
|
+
string;
|
|
920
1285
|
/** The script project's Drive ID. */
|
|
921
|
-
scriptId:
|
|
1286
|
+
scriptId:
|
|
1287
|
+
string;
|
|
922
1288
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
923
|
-
upload_protocol?:
|
|
1289
|
+
upload_protocol?:
|
|
1290
|
+
string;
|
|
924
1291
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
925
|
-
uploadType?:
|
|
1292
|
+
uploadType?:
|
|
1293
|
+
string;
|
|
926
1294
|
/** Request body */
|
|
927
|
-
resource:
|
|
1295
|
+
resource:
|
|
1296
|
+
Content;
|
|
928
1297
|
}): Request<Content>;
|
|
929
1298
|
updateContent(request: {
|
|
930
1299
|
/** V1 error format. */
|
|
931
|
-
"$.xgafv"?:
|
|
1300
|
+
"$.xgafv"?:
|
|
1301
|
+
string;
|
|
932
1302
|
/** OAuth access token. */
|
|
933
|
-
access_token?:
|
|
1303
|
+
access_token?:
|
|
1304
|
+
string;
|
|
934
1305
|
/** Data format for response. */
|
|
935
|
-
alt?:
|
|
1306
|
+
alt?:
|
|
1307
|
+
string;
|
|
936
1308
|
/** JSONP */
|
|
937
|
-
callback?:
|
|
1309
|
+
callback?:
|
|
1310
|
+
string;
|
|
938
1311
|
/** Selector specifying which fields to include in a partial response. */
|
|
939
|
-
fields?:
|
|
1312
|
+
fields?:
|
|
1313
|
+
string;
|
|
940
1314
|
/** 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. */
|
|
941
|
-
key?:
|
|
1315
|
+
key?:
|
|
1316
|
+
string;
|
|
942
1317
|
/** OAuth 2.0 token for the current user. */
|
|
943
|
-
oauth_token?:
|
|
1318
|
+
oauth_token?:
|
|
1319
|
+
string;
|
|
944
1320
|
/** Returns response with indentations and line breaks. */
|
|
945
|
-
prettyPrint?:
|
|
1321
|
+
prettyPrint?:
|
|
1322
|
+
boolean;
|
|
946
1323
|
/** 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. */
|
|
947
|
-
quotaUser?:
|
|
1324
|
+
quotaUser?:
|
|
1325
|
+
string;
|
|
948
1326
|
/** The script project's Drive ID. */
|
|
949
|
-
scriptId:
|
|
1327
|
+
scriptId:
|
|
1328
|
+
string;
|
|
950
1329
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
951
|
-
upload_protocol?:
|
|
1330
|
+
upload_protocol?:
|
|
1331
|
+
string;
|
|
952
1332
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
953
|
-
uploadType?:
|
|
1333
|
+
uploadType?:
|
|
1334
|
+
string;
|
|
954
1335
|
},
|
|
955
1336
|
body: Content): Request<Content>;
|
|
956
|
-
deployments:
|
|
957
|
-
|
|
1337
|
+
deployments:
|
|
1338
|
+
DeploymentsResource;
|
|
1339
|
+
versions:
|
|
1340
|
+
VersionsResource;
|
|
958
1341
|
}
|
|
959
1342
|
interface ScriptsResource {
|
|
960
1343
|
/**
|
|
@@ -966,57 +1349,82 @@ declare namespace gapi.client {
|
|
|
966
1349
|
*/
|
|
967
1350
|
run(request: {
|
|
968
1351
|
/** V1 error format. */
|
|
969
|
-
"$.xgafv"?:
|
|
1352
|
+
"$.xgafv"?:
|
|
1353
|
+
string;
|
|
970
1354
|
/** OAuth access token. */
|
|
971
|
-
access_token?:
|
|
1355
|
+
access_token?:
|
|
1356
|
+
string;
|
|
972
1357
|
/** Data format for response. */
|
|
973
|
-
alt?:
|
|
1358
|
+
alt?:
|
|
1359
|
+
string;
|
|
974
1360
|
/** JSONP */
|
|
975
|
-
callback?:
|
|
1361
|
+
callback?:
|
|
1362
|
+
string;
|
|
976
1363
|
/** Selector specifying which fields to include in a partial response. */
|
|
977
|
-
fields?:
|
|
1364
|
+
fields?:
|
|
1365
|
+
string;
|
|
978
1366
|
/** 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. */
|
|
979
|
-
key?:
|
|
1367
|
+
key?:
|
|
1368
|
+
string;
|
|
980
1369
|
/** OAuth 2.0 token for the current user. */
|
|
981
|
-
oauth_token?:
|
|
1370
|
+
oauth_token?:
|
|
1371
|
+
string;
|
|
982
1372
|
/** Returns response with indentations and line breaks. */
|
|
983
|
-
prettyPrint?:
|
|
1373
|
+
prettyPrint?:
|
|
1374
|
+
boolean;
|
|
984
1375
|
/** 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. */
|
|
985
|
-
quotaUser?:
|
|
1376
|
+
quotaUser?:
|
|
1377
|
+
string;
|
|
986
1378
|
/** The script ID of the script to be executed. Find the script ID on the **Project settings** page under "IDs." */
|
|
987
|
-
scriptId:
|
|
1379
|
+
scriptId:
|
|
1380
|
+
string;
|
|
988
1381
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
989
|
-
upload_protocol?:
|
|
1382
|
+
upload_protocol?:
|
|
1383
|
+
string;
|
|
990
1384
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
991
|
-
uploadType?:
|
|
1385
|
+
uploadType?:
|
|
1386
|
+
string;
|
|
992
1387
|
/** Request body */
|
|
993
|
-
resource:
|
|
1388
|
+
resource:
|
|
1389
|
+
ExecutionRequest;
|
|
994
1390
|
}): Request<Operation>;
|
|
995
1391
|
run(request: {
|
|
996
1392
|
/** V1 error format. */
|
|
997
|
-
"$.xgafv"?:
|
|
1393
|
+
"$.xgafv"?:
|
|
1394
|
+
string;
|
|
998
1395
|
/** OAuth access token. */
|
|
999
|
-
access_token?:
|
|
1396
|
+
access_token?:
|
|
1397
|
+
string;
|
|
1000
1398
|
/** Data format for response. */
|
|
1001
|
-
alt?:
|
|
1399
|
+
alt?:
|
|
1400
|
+
string;
|
|
1002
1401
|
/** JSONP */
|
|
1003
|
-
callback?:
|
|
1402
|
+
callback?:
|
|
1403
|
+
string;
|
|
1004
1404
|
/** Selector specifying which fields to include in a partial response. */
|
|
1005
|
-
fields?:
|
|
1405
|
+
fields?:
|
|
1406
|
+
string;
|
|
1006
1407
|
/** 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. */
|
|
1007
|
-
key?:
|
|
1408
|
+
key?:
|
|
1409
|
+
string;
|
|
1008
1410
|
/** OAuth 2.0 token for the current user. */
|
|
1009
|
-
oauth_token?:
|
|
1411
|
+
oauth_token?:
|
|
1412
|
+
string;
|
|
1010
1413
|
/** Returns response with indentations and line breaks. */
|
|
1011
|
-
prettyPrint?:
|
|
1414
|
+
prettyPrint?:
|
|
1415
|
+
boolean;
|
|
1012
1416
|
/** 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. */
|
|
1013
|
-
quotaUser?:
|
|
1417
|
+
quotaUser?:
|
|
1418
|
+
string;
|
|
1014
1419
|
/** The script ID of the script to be executed. Find the script ID on the **Project settings** page under "IDs." */
|
|
1015
|
-
scriptId:
|
|
1420
|
+
scriptId:
|
|
1421
|
+
string;
|
|
1016
1422
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1017
|
-
upload_protocol?:
|
|
1423
|
+
upload_protocol?:
|
|
1424
|
+
string;
|
|
1018
1425
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1019
|
-
uploadType?:
|
|
1426
|
+
uploadType?:
|
|
1427
|
+
string;
|
|
1020
1428
|
},
|
|
1021
1429
|
body: ExecutionRequest): Request<Operation>;
|
|
1022
1430
|
}
|