blob: dceb96a5746b989137961008c62d4c5212fe6fc8 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="script_v1.html">Apps Script API</a> . <a href="script_v1.processes.html">processes</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070080<p class="toc_element">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -080081 <code><a href="#list">list(userProcessFilter_endTime=None, userProcessFilter_types=None, pageSize=None, userProcessFilter_functionName=None, userProcessFilter_statuses=None, userProcessFilter_userAccessLevels=None, userProcessFilter_deploymentId=None, userProcessFilter_projectName=None, userProcessFilter_scriptId=None, pageToken=None, userProcessFilter_startTime=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<p class="firstline">List information about processes made by or on behalf of a user, such as process type and current status.</p>
83<p class="toc_element">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -080084 <code><a href="#listScriptProcesses">listScriptProcesses(scriptProcessFilter_startTime=None, scriptProcessFilter_userAccessLevels=None, pageSize=None, scriptProcessFilter_functionName=None, scriptId=None, scriptProcessFilter_statuses=None, scriptProcessFilter_types=None, scriptProcessFilter_endTime=None, scriptProcessFilter_deploymentId=None, pageToken=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070085<p class="firstline">List information about a script's executed processes, such as process type and current status.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086<p class="toc_element">
87 <code><a href="#listScriptProcesses_next">listScriptProcesses_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<h3>Method Details</h3>
93<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070094 <code class="details" id="close">close()</code>
95 <pre>Close httplib2 connections.</pre>
96</div>
97
98<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -080099 <code class="details" id="list">list(userProcessFilter_endTime=None, userProcessFilter_types=None, pageSize=None, userProcessFilter_functionName=None, userProcessFilter_statuses=None, userProcessFilter_userAccessLevels=None, userProcessFilter_deploymentId=None, userProcessFilter_projectName=None, userProcessFilter_scriptId=None, pageToken=None, userProcessFilter_startTime=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700100 <pre>List information about processes made by or on behalf of a user, such as process type and current status.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700101
102Args:
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800103 userProcessFilter_endTime: string, Optional field used to limit returned processes to those that completed on or before the given timestamp.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700104 userProcessFilter_types: string, Optional field used to limit returned processes to those having one of the specified process types. (repeated)
105 Allowed values
106 PROCESS_TYPE_UNSPECIFIED - Unspecified type.
107 ADD_ON - The process was started from an add-on entry point.
108 EXECUTION_API - The process was started using the Apps Script API.
109 TIME_DRIVEN - The process was started from a time-based trigger.
110 TRIGGER - The process was started from an event-based trigger.
111 WEBAPP - The process was started from a web app entry point.
112 EDITOR - The process was started using the Apps Script IDE.
113 SIMPLE_TRIGGER - The process was started from a G Suite simple trigger.
114 MENU - The process was started from a G Suite menu item.
115 BATCH_TASK - The process was started as a task in a batch job.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800116 pageSize: integer, The maximum number of returned processes per page of results. Defaults to 50.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800117 userProcessFilter_functionName: string, Optional field used to limit returned processes to those originating from a script function with the given function name.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800118 userProcessFilter_statuses: string, Optional field used to limit returned processes to those having one of the specified process statuses. (repeated)
119 Allowed values
120 PROCESS_STATUS_UNSPECIFIED - Unspecified status.
121 RUNNING - The process is currently running.
122 PAUSED - The process has paused.
123 COMPLETED - The process has completed.
124 CANCELED - The process was cancelled.
125 FAILED - The process failed.
126 TIMED_OUT - The process timed out.
127 UNKNOWN - Process status unknown.
128 DELAYED - The process is delayed, waiting for quota.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800129 userProcessFilter_userAccessLevels: string, Optional field used to limit returned processes to those having one of the specified user access levels. (repeated)
130 Allowed values
131 USER_ACCESS_LEVEL_UNSPECIFIED - User access level unspecified
132 NONE - The user has no access.
133 READ - The user has read-only access.
134 WRITE - The user has write access.
135 OWNER - The user is an owner.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800136 userProcessFilter_deploymentId: string, Optional field used to limit returned processes to those originating from projects with a specific deployment ID.
137 userProcessFilter_projectName: string, Optional field used to limit returned processes to those originating from projects with project names containing a specific string.
138 userProcessFilter_scriptId: string, Optional field used to limit returned processes to those originating from projects with a specific script ID.
139 pageToken: string, 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.
140 userProcessFilter_startTime: string, Optional field used to limit returned processes to those that were started on or after the given timestamp.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800141 x__xgafv: string, V1 error format.
142 Allowed values
143 1 - v1 error format
144 2 - v2 error format
145
146Returns:
147 An object of the form:
148
149 { # Response with the list of Process resources.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800150 &quot;processes&quot;: [ # List of processes matching request parameters.
151 { # Representation of a single script process execution that was started from the script editor, a trigger, an application, or using the Apps Script API. This is distinct from the `Operation` resource, which only represents executions started via the Apps Script API.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800152 &quot;processType&quot;: &quot;A String&quot;, # The executions type.
153 &quot;functionName&quot;: &quot;A String&quot;, # Name of the function the started the execution.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800154 &quot;projectName&quot;: &quot;A String&quot;, # Name of the script being executed.
155 &quot;duration&quot;: &quot;A String&quot;, # Duration the execution spent executing.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800156 &quot;startTime&quot;: &quot;A String&quot;, # Time the execution started.
157 &quot;processStatus&quot;: &quot;A String&quot;, # The executions status.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800158 &quot;userAccessLevel&quot;: &quot;A String&quot;, # The executing users access level to the script.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800159 },
160 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800161 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token for the next page of results. If empty, there are no more pages remaining.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800162 }</pre>
163</div>
164
165<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800166 <code class="details" id="listScriptProcesses">listScriptProcesses(scriptProcessFilter_startTime=None, scriptProcessFilter_userAccessLevels=None, pageSize=None, scriptProcessFilter_functionName=None, scriptId=None, scriptProcessFilter_statuses=None, scriptProcessFilter_types=None, scriptProcessFilter_endTime=None, scriptProcessFilter_deploymentId=None, pageToken=None, x__xgafv=None)</code>
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800167 <pre>List information about a script&#x27;s executed processes, such as process type and current status.
168
169Args:
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800170 scriptProcessFilter_startTime: string, Optional field used to limit returned processes to those that were started on or after the given timestamp.
171 scriptProcessFilter_userAccessLevels: string, Optional field used to limit returned processes to those having one of the specified user access levels. (repeated)
172 Allowed values
173 USER_ACCESS_LEVEL_UNSPECIFIED - User access level unspecified
174 NONE - The user has no access.
175 READ - The user has read-only access.
176 WRITE - The user has write access.
177 OWNER - The user is an owner.
178 pageSize: integer, The maximum number of returned processes per page of results. Defaults to 50.
179 scriptProcessFilter_functionName: string, Optional field used to limit returned processes to those originating from a script function with the given function name.
180 scriptId: string, The script ID of the project whose processes are listed.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800181 scriptProcessFilter_statuses: string, Optional field used to limit returned processes to those having one of the specified process statuses. (repeated)
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800182 Allowed values
183 PROCESS_STATUS_UNSPECIFIED - Unspecified status.
184 RUNNING - The process is currently running.
185 PAUSED - The process has paused.
186 COMPLETED - The process has completed.
187 CANCELED - The process was cancelled.
188 FAILED - The process failed.
189 TIMED_OUT - The process timed out.
190 UNKNOWN - Process status unknown.
191 DELAYED - The process is delayed, waiting for quota.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700192 scriptProcessFilter_types: string, Optional field used to limit returned processes to those having one of the specified process types. (repeated)
193 Allowed values
194 PROCESS_TYPE_UNSPECIFIED - Unspecified type.
195 ADD_ON - The process was started from an add-on entry point.
196 EXECUTION_API - The process was started using the Apps Script API.
197 TIME_DRIVEN - The process was started from a time-based trigger.
198 TRIGGER - The process was started from an event-based trigger.
199 WEBAPP - The process was started from a web app entry point.
200 EDITOR - The process was started using the Apps Script IDE.
201 SIMPLE_TRIGGER - The process was started from a G Suite simple trigger.
202 MENU - The process was started from a G Suite menu item.
203 BATCH_TASK - The process was started as a task in a batch job.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800204 scriptProcessFilter_endTime: string, Optional field used to limit returned processes to those that completed on or before the given timestamp.
205 scriptProcessFilter_deploymentId: string, Optional field used to limit returned processes to those originating from projects with a specific deployment ID.
206 pageToken: string, 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700207 x__xgafv: string, V1 error format.
208 Allowed values
209 1 - v1 error format
210 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700211
212Returns:
213 An object of the form:
214
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700215 { # Response with the list of Process resources.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800216 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token for the next page of results. If empty, there are no more pages remaining.
Bu Sun Kim65020912020-05-20 12:08:20 -0700217 &quot;processes&quot;: [ # List of processes matching request parameters.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700218 { # Representation of a single script process execution that was started from the script editor, a trigger, an application, or using the Apps Script API. This is distinct from the `Operation` resource, which only represents executions started via the Apps Script API.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800219 &quot;processType&quot;: &quot;A String&quot;, # The executions type.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800220 &quot;functionName&quot;: &quot;A String&quot;, # Name of the function the started the execution.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800221 &quot;projectName&quot;: &quot;A String&quot;, # Name of the script being executed.
222 &quot;duration&quot;: &quot;A String&quot;, # Duration the execution spent executing.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800223 &quot;startTime&quot;: &quot;A String&quot;, # Time the execution started.
224 &quot;processStatus&quot;: &quot;A String&quot;, # The executions status.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800225 &quot;userAccessLevel&quot;: &quot;A String&quot;, # The executing users access level to the script.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700226 },
227 ],
228 }</pre>
229</div>
230
231<div class="method">
232 <code class="details" id="listScriptProcesses_next">listScriptProcesses_next(previous_request, previous_response)</code>
233 <pre>Retrieves the next page of results.
234
235Args:
236 previous_request: The request for the previous page. (required)
237 previous_response: The response from the request for the previous page. (required)
238
239Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700240 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700241 page. Returns None if there are no more items in the collection.
242 </pre>
243</div>
244
245<div class="method">
246 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
247 <pre>Retrieves the next page of results.
248
249Args:
250 previous_request: The request for the previous page. (required)
251 previous_response: The response from the request for the previous page. (required)
252
253Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700254 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700255 page. Returns None if there are no more items in the collection.
256 </pre>
257</div>
258
259</body></html>