| 1 |
<html><body> |
| 2 |
<style> |
| 3 |
|
| 4 |
body, 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 |
|
| 15 |
body { |
| 16 |
font-size: 13px; |
| 17 |
padding: 1em; |
| 18 |
} |
| 19 |
|
| 20 |
h1 { |
| 21 |
font-size: 26px; |
| 22 |
margin-bottom: 1em; |
| 23 |
} |
| 24 |
|
| 25 |
h2 { |
| 26 |
font-size: 24px; |
| 27 |
margin-bottom: 1em; |
| 28 |
} |
| 29 |
|
| 30 |
h3 { |
| 31 |
font-size: 20px; |
| 32 |
margin-bottom: 1em; |
| 33 |
margin-top: 1em; |
| 34 |
} |
| 35 |
|
| 36 |
pre, code { |
| 37 |
line-height: 1.5; |
| 38 |
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 |
} |
| 40 |
|
| 41 |
pre { |
| 42 |
margin-top: 0.5em; |
| 43 |
} |
| 44 |
|
| 45 |
h1, h2, h3, p { |
| 46 |
font-family: Arial, sans serif; |
| 47 |
} |
| 48 |
|
| 49 |
h1, 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"> |
| 78 |
<code><a href="#close">close()</a></code></p> |
| 79 |
<p class="firstline">Close httplib2 connections.</p> |
| 80 |
<p class="toc_element"> |
| 81 |
<code><a href="#list">list(pageSize=None, pageToken=None, userProcessFilter_deploymentId=None, userProcessFilter_endTime=None, userProcessFilter_functionName=None, userProcessFilter_projectName=None, userProcessFilter_scriptId=None, userProcessFilter_startTime=None, userProcessFilter_statuses=None, userProcessFilter_types=None, userProcessFilter_userAccessLevels=None, x__xgafv=None)</a></code></p> |
| 82 |
<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"> |
| 84 |
<code><a href="#listScriptProcesses">listScriptProcesses(pageSize=None, pageToken=None, scriptId=None, scriptProcessFilter_deploymentId=None, scriptProcessFilter_endTime=None, scriptProcessFilter_functionName=None, scriptProcessFilter_startTime=None, scriptProcessFilter_statuses=None, scriptProcessFilter_types=None, scriptProcessFilter_userAccessLevels=None, x__xgafv=None)</a></code></p> |
| 85 |
<p class="firstline">List information about a script's executed processes, such as process type and current status.</p> |
| 86 |
<p class="toc_element"> |
| 87 |
<code><a href="#listScriptProcesses_next">listScriptProcesses_next()</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()</a></code></p> |
| 91 |
<p class="firstline">Retrieves the next page of results.</p> |
| 92 |
<h3>Method Details</h3> |
| 93 |
<div class="method"> |
| 94 |
<code class="details" id="close">close()</code> |
| 95 |
<pre>Close httplib2 connections.</pre> |
| 96 |
</div> |
| 97 |
|
| 98 |
<div class="method"> |
| 99 |
<code class="details" id="list">list(pageSize=None, pageToken=None, userProcessFilter_deploymentId=None, userProcessFilter_endTime=None, userProcessFilter_functionName=None, userProcessFilter_projectName=None, userProcessFilter_scriptId=None, userProcessFilter_startTime=None, userProcessFilter_statuses=None, userProcessFilter_types=None, userProcessFilter_userAccessLevels=None, x__xgafv=None)</code> |
| 100 |
<pre>List information about processes made by or on behalf of a user, such as process type and current status. |
| 101 |
|
| 102 |
Args: |
| 103 |
pageSize: integer, The maximum number of returned processes per page of results. Defaults to 50. |
| 104 |
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. |
| 105 |
userProcessFilter_deploymentId: string, Optional field used to limit returned processes to those originating from projects with a specific deployment ID. |
| 106 |
userProcessFilter_endTime: string, Optional field used to limit returned processes to those that completed on or before the given timestamp. |
| 107 |
userProcessFilter_functionName: string, Optional field used to limit returned processes to those originating from a script function with the given function name. |
| 108 |
userProcessFilter_projectName: string, Optional field used to limit returned processes to those originating from projects with project names containing a specific string. |
| 109 |
userProcessFilter_scriptId: string, Optional field used to limit returned processes to those originating from projects with a specific script ID. |
| 110 |
userProcessFilter_startTime: string, Optional field used to limit returned processes to those that were started on or after the given timestamp. |
| 111 |
userProcessFilter_statuses: string, Optional field used to limit returned processes to those having one of the specified process statuses. (repeated) |
| 112 |
Allowed values |
| 113 |
PROCESS_STATUS_UNSPECIFIED - Unspecified status. |
| 114 |
RUNNING - The process is currently running. |
| 115 |
PAUSED - The process has paused. |
| 116 |
COMPLETED - The process has completed. |
| 117 |
CANCELED - The process was cancelled. |
| 118 |
FAILED - The process failed. |
| 119 |
TIMED_OUT - The process timed out. |
| 120 |
UNKNOWN - Process status unknown. |
| 121 |
DELAYED - The process is delayed, waiting for quota. |
| 122 |
EXECUTION_DISABLED - AppsScript executions are disabled by Admin. |
| 123 |
userProcessFilter_types: string, Optional field used to limit returned processes to those having one of the specified process types. (repeated) |
| 124 |
Allowed values |
| 125 |
PROCESS_TYPE_UNSPECIFIED - Unspecified type. |
| 126 |
ADD_ON - The process was started from an add-on entry point. |
| 127 |
EXECUTION_API - The process was started using the Apps Script API. |
| 128 |
TIME_DRIVEN - The process was started from a time-based trigger. |
| 129 |
TRIGGER - The process was started from an event-based trigger. |
| 130 |
WEBAPP - The process was started from a web app entry point. |
| 131 |
EDITOR - The process was started using the Apps Script IDE. |
| 132 |
SIMPLE_TRIGGER - The process was started from a G Suite simple trigger. |
| 133 |
MENU - The process was started from a G Suite menu item. |
| 134 |
BATCH_TASK - The process was started as a task in a batch job. |
| 135 |
userProcessFilter_userAccessLevels: string, Optional field used to limit returned processes to those having one of the specified user access levels. (repeated) |
| 136 |
Allowed values |
| 137 |
USER_ACCESS_LEVEL_UNSPECIFIED - User access level unspecified |
| 138 |
NONE - The user has no access. |
| 139 |
READ - The user has read-only access. |
| 140 |
WRITE - The user has write access. |
| 141 |
OWNER - The user is an owner. |
| 142 |
x__xgafv: string, V1 error format. |
| 143 |
Allowed values |
| 144 |
1 - v1 error format |
| 145 |
2 - v2 error format |
| 146 |
|
| 147 |
Returns: |
| 148 |
An object of the form: |
| 149 |
|
| 150 |
{ # Response with the list of Process resources. |
| 151 |
"nextPageToken": "A String", # Token for the next page of results. If empty, there are no more pages remaining. |
| 152 |
"processes": [ # List of processes matching request parameters. |
| 153 |
{ # 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. |
| 154 |
"duration": "A String", # Duration the execution spent executing. |
| 155 |
"functionName": "A String", # Name of the function the started the execution. |
| 156 |
"processStatus": "A String", # The executions status. |
| 157 |
"processType": "A String", # The executions type. |
| 158 |
"projectName": "A String", # Name of the script being executed. |
| 159 |
"runtimeVersion": "A String", # Which version of maestro to use to execute the script. |
| 160 |
"startTime": "A String", # Time the execution started. |
| 161 |
"userAccessLevel": "A String", # The executing users access level to the script. |
| 162 |
}, |
| 163 |
], |
| 164 |
}</pre> |
| 165 |
</div> |
| 166 |
|
| 167 |
<div class="method"> |
| 168 |
<code class="details" id="listScriptProcesses">listScriptProcesses(pageSize=None, pageToken=None, scriptId=None, scriptProcessFilter_deploymentId=None, scriptProcessFilter_endTime=None, scriptProcessFilter_functionName=None, scriptProcessFilter_startTime=None, scriptProcessFilter_statuses=None, scriptProcessFilter_types=None, scriptProcessFilter_userAccessLevels=None, x__xgafv=None)</code> |
| 169 |
<pre>List information about a script's executed processes, such as process type and current status. |
| 170 |
|
| 171 |
Args: |
| 172 |
pageSize: integer, The maximum number of returned processes per page of results. Defaults to 50. |
| 173 |
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. |
| 174 |
scriptId: string, The script ID of the project whose processes are listed. |
| 175 |
scriptProcessFilter_deploymentId: string, Optional field used to limit returned processes to those originating from projects with a specific deployment ID. |
| 176 |
scriptProcessFilter_endTime: string, Optional field used to limit returned processes to those that completed on or before the given timestamp. |
| 177 |
scriptProcessFilter_functionName: string, Optional field used to limit returned processes to those originating from a script function with the given function name. |
| 178 |
scriptProcessFilter_startTime: string, Optional field used to limit returned processes to those that were started on or after the given timestamp. |
| 179 |
scriptProcessFilter_statuses: string, Optional field used to limit returned processes to those having one of the specified process statuses. (repeated) |
| 180 |
Allowed values |
| 181 |
PROCESS_STATUS_UNSPECIFIED - Unspecified status. |
| 182 |
RUNNING - The process is currently running. |
| 183 |
PAUSED - The process has paused. |
| 184 |
COMPLETED - The process has completed. |
| 185 |
CANCELED - The process was cancelled. |
| 186 |
FAILED - The process failed. |
| 187 |
TIMED_OUT - The process timed out. |
| 188 |
UNKNOWN - Process status unknown. |
| 189 |
DELAYED - The process is delayed, waiting for quota. |
| 190 |
EXECUTION_DISABLED - AppsScript executions are disabled by Admin. |
| 191 |
scriptProcessFilter_types: string, Optional field used to limit returned processes to those having one of the specified process types. (repeated) |
| 192 |
Allowed values |
| 193 |
PROCESS_TYPE_UNSPECIFIED - Unspecified type. |
| 194 |
ADD_ON - The process was started from an add-on entry point. |
| 195 |
EXECUTION_API - The process was started using the Apps Script API. |
| 196 |
TIME_DRIVEN - The process was started from a time-based trigger. |
| 197 |
TRIGGER - The process was started from an event-based trigger. |
| 198 |
WEBAPP - The process was started from a web app entry point. |
| 199 |
EDITOR - The process was started using the Apps Script IDE. |
| 200 |
SIMPLE_TRIGGER - The process was started from a G Suite simple trigger. |
| 201 |
MENU - The process was started from a G Suite menu item. |
| 202 |
BATCH_TASK - The process was started as a task in a batch job. |
| 203 |
scriptProcessFilter_userAccessLevels: string, Optional field used to limit returned processes to those having one of the specified user access levels. (repeated) |
| 204 |
Allowed values |
| 205 |
USER_ACCESS_LEVEL_UNSPECIFIED - User access level unspecified |
| 206 |
NONE - The user has no access. |
| 207 |
READ - The user has read-only access. |
| 208 |
WRITE - The user has write access. |
| 209 |
OWNER - The user is an owner. |
| 210 |
x__xgafv: string, V1 error format. |
| 211 |
Allowed values |
| 212 |
1 - v1 error format |
| 213 |
2 - v2 error format |
| 214 |
|
| 215 |
Returns: |
| 216 |
An object of the form: |
| 217 |
|
| 218 |
{ # Response with the list of Process resources. |
| 219 |
"nextPageToken": "A String", # Token for the next page of results. If empty, there are no more pages remaining. |
| 220 |
"processes": [ # List of processes matching request parameters. |
| 221 |
{ # 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. |
| 222 |
"duration": "A String", # Duration the execution spent executing. |
| 223 |
"functionName": "A String", # Name of the function the started the execution. |
| 224 |
"processStatus": "A String", # The executions status. |
| 225 |
"processType": "A String", # The executions type. |
| 226 |
"projectName": "A String", # Name of the script being executed. |
| 227 |
"runtimeVersion": "A String", # Which version of maestro to use to execute the script. |
| 228 |
"startTime": "A String", # Time the execution started. |
| 229 |
"userAccessLevel": "A String", # The executing users access level to the script. |
| 230 |
}, |
| 231 |
], |
| 232 |
}</pre> |
| 233 |
</div> |
| 234 |
|
| 235 |
<div class="method"> |
| 236 |
<code class="details" id="listScriptProcesses_next">listScriptProcesses_next()</code> |
| 237 |
<pre>Retrieves the next page of results. |
| 238 |
|
| 239 |
Args: |
| 240 |
previous_request: The request for the previous page. (required) |
| 241 |
previous_response: The response from the request for the previous page. (required) |
| 242 |
|
| 243 |
Returns: |
| 244 |
A request object that you can call 'execute()' on to request the next |
| 245 |
page. Returns None if there are no more items in the collection. |
| 246 |
</pre> |
| 247 |
</div> |
| 248 |
|
| 249 |
<div class="method"> |
| 250 |
<code class="details" id="list_next">list_next()</code> |
| 251 |
<pre>Retrieves the next page of results. |
| 252 |
|
| 253 |
Args: |
| 254 |
previous_request: The request for the previous page. (required) |
| 255 |
previous_response: The response from the request for the previous page. (required) |
| 256 |
|
| 257 |
Returns: |
| 258 |
A request object that you can call 'execute()' on to request the next |
| 259 |
page. Returns None if there are no more items in the collection. |
| 260 |
</pre> |
| 261 |
</div> |
| 262 |
|
| 263 |
</body></html> |