blob: 0e813be67d0053d55eba380d7bdcb6b6d0d88702 [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 Botb6971b02020-11-26 17:16:03 -080081 <code><a href="#list">list(userProcessFilter_statuses=None, pageToken=None, pageSize=None, userProcessFilter_startTime=None, userProcessFilter_scriptId=None, userProcessFilter_projectName=None, userProcessFilter_types=None, userProcessFilter_functionName=None, userProcessFilter_endTime=None, userProcessFilter_deploymentId=None, userProcessFilter_userAccessLevels=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 Botb6971b02020-11-26 17:16:03 -080084 <code><a href="#listScriptProcesses">listScriptProcesses(scriptProcessFilter_statuses=None, scriptProcessFilter_endTime=None, scriptProcessFilter_deploymentId=None, pageToken=None, pageSize=None, scriptProcessFilter_functionName=None, scriptId=None, scriptProcessFilter_startTime=None, scriptProcessFilter_types=None, scriptProcessFilter_userAccessLevels=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 Botb6971b02020-11-26 17:16:03 -080099 <code class="details" id="list">list(userProcessFilter_statuses=None, pageToken=None, pageSize=None, userProcessFilter_startTime=None, userProcessFilter_scriptId=None, userProcessFilter_projectName=None, userProcessFilter_types=None, userProcessFilter_functionName=None, userProcessFilter_endTime=None, userProcessFilter_deploymentId=None, userProcessFilter_userAccessLevels=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 Botb6971b02020-11-26 17:16:03 -0800103 userProcessFilter_statuses: string, Optional field used to limit returned processes to those having one of the specified process statuses. (repeated)
104 Allowed values
105 PROCESS_STATUS_UNSPECIFIED - Unspecified status.
106 RUNNING - The process is currently running.
107 PAUSED - The process has paused.
108 COMPLETED - The process has completed.
109 CANCELED - The process was cancelled.
110 FAILED - The process failed.
111 TIMED_OUT - The process timed out.
112 UNKNOWN - Process status unknown.
113 DELAYED - The process is delayed, waiting for quota.
114 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.
115 pageSize: integer, The maximum number of returned processes per page of results. Defaults to 50.
116 userProcessFilter_startTime: string, Optional field used to limit returned processes to those that were started on or after the given timestamp.
117 userProcessFilter_scriptId: string, Optional field used to limit returned processes to those originating from projects with a specific script ID.
118 userProcessFilter_projectName: string, Optional field used to limit returned processes to those originating from projects with project names containing a specific string.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700119 userProcessFilter_types: string, Optional field used to limit returned processes to those having one of the specified process types. (repeated)
120 Allowed values
121 PROCESS_TYPE_UNSPECIFIED - Unspecified type.
122 ADD_ON - The process was started from an add-on entry point.
123 EXECUTION_API - The process was started using the Apps Script API.
124 TIME_DRIVEN - The process was started from a time-based trigger.
125 TRIGGER - The process was started from an event-based trigger.
126 WEBAPP - The process was started from a web app entry point.
127 EDITOR - The process was started using the Apps Script IDE.
128 SIMPLE_TRIGGER - The process was started from a G Suite simple trigger.
129 MENU - The process was started from a G Suite menu item.
130 BATCH_TASK - The process was started as a task in a batch job.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800131 userProcessFilter_functionName: string, Optional field used to limit returned processes to those originating from a script function with the given function name.
132 userProcessFilter_endTime: string, Optional field used to limit returned processes to those that completed on or before the given timestamp.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800133 userProcessFilter_deploymentId: string, Optional field used to limit returned processes to those originating from projects with a specific deployment ID.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800134 userProcessFilter_userAccessLevels: string, Optional field used to limit returned processes to those having one of the specified user access levels. (repeated)
135 Allowed values
136 USER_ACCESS_LEVEL_UNSPECIFIED - User access level unspecified
137 NONE - The user has no access.
138 READ - The user has read-only access.
139 WRITE - The user has write access.
140 OWNER - The user is an owner.
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.
150 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token for the next page of results. If empty, there are no more pages remaining.
151 &quot;processes&quot;: [ # List of processes matching request parameters.
152 { # 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.
153 &quot;projectName&quot;: &quot;A String&quot;, # Name of the script being executed.
154 &quot;duration&quot;: &quot;A String&quot;, # Duration the execution spent executing.
155 &quot;userAccessLevel&quot;: &quot;A String&quot;, # The executing users access level to the script.
156 &quot;processType&quot;: &quot;A String&quot;, # The executions type.
157 &quot;functionName&quot;: &quot;A String&quot;, # Name of the function the started the execution.
158 &quot;startTime&quot;: &quot;A String&quot;, # Time the execution started.
159 &quot;processStatus&quot;: &quot;A String&quot;, # The executions status.
160 },
161 ],
162 }</pre>
163</div>
164
165<div class="method">
166 <code class="details" id="listScriptProcesses">listScriptProcesses(scriptProcessFilter_statuses=None, scriptProcessFilter_endTime=None, scriptProcessFilter_deploymentId=None, pageToken=None, pageSize=None, scriptProcessFilter_functionName=None, scriptId=None, scriptProcessFilter_startTime=None, scriptProcessFilter_types=None, scriptProcessFilter_userAccessLevels=None, x__xgafv=None)</code>
167 <pre>List information about a script&#x27;s executed processes, such as process type and current status.
168
169Args:
170 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 -0800171 Allowed values
172 PROCESS_STATUS_UNSPECIFIED - Unspecified status.
173 RUNNING - The process is currently running.
174 PAUSED - The process has paused.
175 COMPLETED - The process has completed.
176 CANCELED - The process was cancelled.
177 FAILED - The process failed.
178 TIMED_OUT - The process timed out.
179 UNKNOWN - Process status unknown.
180 DELAYED - The process is delayed, waiting for quota.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800181 scriptProcessFilter_endTime: string, Optional field used to limit returned processes to those that completed on or before the given timestamp.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800182 scriptProcessFilter_deploymentId: string, Optional field used to limit returned processes to those originating from projects with a specific deployment ID.
183 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.
184 pageSize: integer, The maximum number of returned processes per page of results. Defaults to 50.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800185 scriptProcessFilter_functionName: string, Optional field used to limit returned processes to those originating from a script function with the given function name.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800186 scriptId: string, The script ID of the project whose processes are listed.
187 scriptProcessFilter_startTime: string, Optional field used to limit returned processes to those that were started on or after the given timestamp.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700188 scriptProcessFilter_types: string, Optional field used to limit returned processes to those having one of the specified process types. (repeated)
189 Allowed values
190 PROCESS_TYPE_UNSPECIFIED - Unspecified type.
191 ADD_ON - The process was started from an add-on entry point.
192 EXECUTION_API - The process was started using the Apps Script API.
193 TIME_DRIVEN - The process was started from a time-based trigger.
194 TRIGGER - The process was started from an event-based trigger.
195 WEBAPP - The process was started from a web app entry point.
196 EDITOR - The process was started using the Apps Script IDE.
197 SIMPLE_TRIGGER - The process was started from a G Suite simple trigger.
198 MENU - The process was started from a G Suite menu item.
199 BATCH_TASK - The process was started as a task in a batch job.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800200 scriptProcessFilter_userAccessLevels: string, Optional field used to limit returned processes to those having one of the specified user access levels. (repeated)
201 Allowed values
202 USER_ACCESS_LEVEL_UNSPECIFIED - User access level unspecified
203 NONE - The user has no access.
204 READ - The user has read-only access.
205 WRITE - The user has write access.
206 OWNER - The user is an owner.
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 Kim65020912020-05-20 12:08:20 -0700216 &quot;processes&quot;: [ # List of processes matching request parameters.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700217 { # 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 Botc2228be2020-11-24 15:48:03 -0800218 &quot;projectName&quot;: &quot;A String&quot;, # Name of the script being executed.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800219 &quot;duration&quot;: &quot;A String&quot;, # Duration the execution spent executing.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800220 &quot;userAccessLevel&quot;: &quot;A String&quot;, # The executing users access level to the script.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800221 &quot;processType&quot;: &quot;A String&quot;, # The executions type.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800222 &quot;functionName&quot;: &quot;A String&quot;, # Name of the function the started the execution.
223 &quot;startTime&quot;: &quot;A String&quot;, # Time the execution started.
224 &quot;processStatus&quot;: &quot;A String&quot;, # The executions status.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700225 },
226 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800227 &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 -0700228 }</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>