blob: d4fc2e8f6a31be9dce39711426e7d1057fc5b4a1 [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 Botc2228be2020-11-24 15:48:03 -080081 <code><a href="#list">list(pageToken=None, pageSize=None, userProcessFilter_deploymentId=None, userProcessFilter_userAccessLevels=None, userProcessFilter_statuses=None, userProcessFilter_types=None, userProcessFilter_functionName=None, userProcessFilter_endTime=None, userProcessFilter_startTime=None, userProcessFilter_projectName=None, userProcessFilter_scriptId=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 Botc2228be2020-11-24 15:48:03 -080084 <code><a href="#listScriptProcesses">listScriptProcesses(scriptProcessFilter_userAccessLevels=None, scriptProcessFilter_startTime=None, scriptProcessFilter_deploymentId=None, pageSize=None, scriptProcessFilter_endTime=None, scriptProcessFilter_types=None, pageToken=None, scriptProcessFilter_statuses=None, scriptProcessFilter_functionName=None, scriptId=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 Botc2228be2020-11-24 15:48:03 -080099 <code class="details" id="list">list(pageToken=None, pageSize=None, userProcessFilter_deploymentId=None, userProcessFilter_userAccessLevels=None, userProcessFilter_statuses=None, userProcessFilter_types=None, userProcessFilter_functionName=None, userProcessFilter_endTime=None, userProcessFilter_startTime=None, userProcessFilter_projectName=None, userProcessFilter_scriptId=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:
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700103 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.
104 pageSize: integer, The maximum number of returned processes per page of results. Defaults to 50.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800105 userProcessFilter_deploymentId: string, Optional field used to limit returned processes to those originating from projects with a specific deployment ID.
106 userProcessFilter_userAccessLevels: string, Optional field used to limit returned processes to those having one of the specified user access levels. (repeated)
107 Allowed values
108 USER_ACCESS_LEVEL_UNSPECIFIED - User access level unspecified
109 NONE - The user has no access.
110 READ - The user has read-only access.
111 WRITE - The user has write access.
112 OWNER - The user is an owner.
113 userProcessFilter_statuses: string, Optional field used to limit returned processes to those having one of the specified process statuses. (repeated)
114 Allowed values
115 PROCESS_STATUS_UNSPECIFIED - Unspecified status.
116 RUNNING - The process is currently running.
117 PAUSED - The process has paused.
118 COMPLETED - The process has completed.
119 CANCELED - The process was cancelled.
120 FAILED - The process failed.
121 TIMED_OUT - The process timed out.
122 UNKNOWN - Process status unknown.
123 DELAYED - The process is delayed, waiting for quota.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700124 userProcessFilter_types: string, Optional field used to limit returned processes to those having one of the specified process types. (repeated)
125 Allowed values
126 PROCESS_TYPE_UNSPECIFIED - Unspecified type.
127 ADD_ON - The process was started from an add-on entry point.
128 EXECUTION_API - The process was started using the Apps Script API.
129 TIME_DRIVEN - The process was started from a time-based trigger.
130 TRIGGER - The process was started from an event-based trigger.
131 WEBAPP - The process was started from a web app entry point.
132 EDITOR - The process was started using the Apps Script IDE.
133 SIMPLE_TRIGGER - The process was started from a G Suite simple trigger.
134 MENU - The process was started from a G Suite menu item.
135 BATCH_TASK - The process was started as a task in a batch job.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800136 userProcessFilter_functionName: string, Optional field used to limit returned processes to those originating from a script function with the given function name.
137 userProcessFilter_endTime: string, Optional field used to limit returned processes to those that completed on or before the given timestamp.
138 userProcessFilter_startTime: string, Optional field used to limit returned processes to those that were started on or after the given timestamp.
139 userProcessFilter_projectName: string, Optional field used to limit returned processes to those originating from projects with project names containing a specific string.
140 userProcessFilter_scriptId: string, Optional field used to limit returned processes to those originating from projects with a specific script ID.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700141 x__xgafv: string, V1 error format.
142 Allowed values
143 1 - v1 error format
144 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700145
146Returns:
147 An object of the form:
148
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700149 { # Response with the list of Process resources.
Bu Sun Kim65020912020-05-20 12:08:20 -0700150 &quot;processes&quot;: [ # List of processes matching request parameters.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700151 { # 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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700152 &quot;functionName&quot;: &quot;A String&quot;, # Name of the function the started the execution.
153 &quot;startTime&quot;: &quot;A String&quot;, # Time the execution started.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700154 &quot;userAccessLevel&quot;: &quot;A String&quot;, # The executing users access level to the script.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800155 &quot;processStatus&quot;: &quot;A String&quot;, # The executions status.
156 &quot;processType&quot;: &quot;A String&quot;, # The executions type.
157 &quot;duration&quot;: &quot;A String&quot;, # Duration the execution spent executing.
158 &quot;projectName&quot;: &quot;A String&quot;, # Name of the script being executed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700159 },
160 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700161 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token for the next page of results. If empty, there are no more pages remaining.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700162 }</pre>
163</div>
164
165<div class="method">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800166 <code class="details" id="listScriptProcesses">listScriptProcesses(scriptProcessFilter_userAccessLevels=None, scriptProcessFilter_startTime=None, scriptProcessFilter_deploymentId=None, pageSize=None, scriptProcessFilter_endTime=None, scriptProcessFilter_types=None, pageToken=None, scriptProcessFilter_statuses=None, scriptProcessFilter_functionName=None, scriptId=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700167 <pre>List information about a script&#x27;s executed processes, such as process type and current status.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700168
169Args:
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800170 scriptProcessFilter_userAccessLevels: string, Optional field used to limit returned processes to those having one of the specified user access levels. (repeated)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700171 Allowed values
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800172 USER_ACCESS_LEVEL_UNSPECIFIED - User access level unspecified
173 NONE - The user has no access.
174 READ - The user has read-only access.
175 WRITE - The user has write access.
176 OWNER - The user is an owner.
177 scriptProcessFilter_startTime: string, Optional field used to limit returned processes to those that were started on or after the given timestamp.
178 scriptProcessFilter_deploymentId: string, Optional field used to limit returned processes to those originating from projects with a specific deployment ID.
179 pageSize: integer, The maximum number of returned processes per page of results. Defaults to 50.
180 scriptProcessFilter_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 -0700181 scriptProcessFilter_types: string, Optional field used to limit returned processes to those having one of the specified process types. (repeated)
182 Allowed values
183 PROCESS_TYPE_UNSPECIFIED - Unspecified type.
184 ADD_ON - The process was started from an add-on entry point.
185 EXECUTION_API - The process was started using the Apps Script API.
186 TIME_DRIVEN - The process was started from a time-based trigger.
187 TRIGGER - The process was started from an event-based trigger.
188 WEBAPP - The process was started from a web app entry point.
189 EDITOR - The process was started using the Apps Script IDE.
190 SIMPLE_TRIGGER - The process was started from a G Suite simple trigger.
191 MENU - The process was started from a G Suite menu item.
192 BATCH_TASK - The process was started as a task in a batch job.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700193 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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800194 scriptProcessFilter_statuses: string, Optional field used to limit returned processes to those having one of the specified process statuses. (repeated)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700195 Allowed values
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800196 PROCESS_STATUS_UNSPECIFIED - Unspecified status.
197 RUNNING - The process is currently running.
198 PAUSED - The process has paused.
199 COMPLETED - The process has completed.
200 CANCELED - The process was cancelled.
201 FAILED - The process failed.
202 TIMED_OUT - The process timed out.
203 UNKNOWN - Process status unknown.
204 DELAYED - The process is delayed, waiting for quota.
205 scriptProcessFilter_functionName: string, Optional field used to limit returned processes to those originating from a script function with the given function name.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700206 scriptId: string, The script ID of the project whose processes are listed.
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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700216 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700219 &quot;functionName&quot;: &quot;A String&quot;, # Name of the function the started the execution.
220 &quot;startTime&quot;: &quot;A String&quot;, # Time the execution started.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700221 &quot;userAccessLevel&quot;: &quot;A String&quot;, # The executing users access level to the script.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800222 &quot;processStatus&quot;: &quot;A String&quot;, # The executions status.
223 &quot;processType&quot;: &quot;A String&quot;, # The executions type.
224 &quot;duration&quot;: &quot;A String&quot;, # Duration the execution spent executing.
225 &quot;projectName&quot;: &quot;A String&quot;, # Name of the script being executed.
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>