blob: a94ffa39670fc643eb01cbe5f3dfb224babc0908 [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.projects.html">projects</a> . <a href="script_v1.projects.versions.html">versions</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#create">create(scriptId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Creates a new immutable version using the current code, with a unique</p>
80<p class="toc_element">
81 <code><a href="#get">get(scriptId, versionNumber, x__xgafv=None)</a></code></p>
82<p class="firstline">Gets a version of a script project.</p>
83<p class="toc_element">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070084 <code><a href="#list">list(scriptId, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">List the versions of a script project.</p>
86<p class="toc_element">
87 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<h3>Method Details</h3>
90<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070091 <code class="details" id="create">create(scriptId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092 <pre>Creates a new immutable version using the current code, with a unique
93version number.
94
95Args:
Bu Sun Kim65020912020-05-20 12:08:20 -070096 scriptId: string, The script project&#x27;s Drive ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -070097 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070098 The object takes the form of:
99
Bu Sun Kim65020912020-05-20 12:08:20 -0700100{ # A resource representing a script project version. A version is a &quot;snapshot&quot;
101 # of a script project and is similar to a read-only branched release. When
102 # creating deployments, the version to use must be specified.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700103 &quot;createTime&quot;: &quot;A String&quot;, # When the version was created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700104 &quot;versionNumber&quot;: 42, # The incremental ID that is created by Apps Script when a version is
105 # created. This is system assigned number and is immutable once created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700106 &quot;description&quot;: &quot;A String&quot;, # The description for this version.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700107 &quot;scriptId&quot;: &quot;A String&quot;, # The script project&#x27;s Drive ID.
Bu Sun Kim65020912020-05-20 12:08:20 -0700108}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109
110 x__xgafv: string, V1 error format.
111 Allowed values
112 1 - v1 error format
113 2 - v2 error format
114
115Returns:
116 An object of the form:
117
Bu Sun Kim65020912020-05-20 12:08:20 -0700118 { # A resource representing a script project version. A version is a &quot;snapshot&quot;
119 # of a script project and is similar to a read-only branched release. When
120 # creating deployments, the version to use must be specified.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700121 &quot;createTime&quot;: &quot;A String&quot;, # When the version was created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700122 &quot;versionNumber&quot;: 42, # The incremental ID that is created by Apps Script when a version is
123 # created. This is system assigned number and is immutable once created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700124 &quot;description&quot;: &quot;A String&quot;, # The description for this version.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700125 &quot;scriptId&quot;: &quot;A String&quot;, # The script project&#x27;s Drive ID.
Bu Sun Kim65020912020-05-20 12:08:20 -0700126 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700127</div>
128
129<div class="method">
130 <code class="details" id="get">get(scriptId, versionNumber, x__xgafv=None)</code>
131 <pre>Gets a version of a script project.
132
133Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700134 scriptId: string, The script project&#x27;s Drive ID. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700135 versionNumber: integer, The version number. (required)
136 x__xgafv: string, V1 error format.
137 Allowed values
138 1 - v1 error format
139 2 - v2 error format
140
141Returns:
142 An object of the form:
143
Bu Sun Kim65020912020-05-20 12:08:20 -0700144 { # A resource representing a script project version. A version is a &quot;snapshot&quot;
145 # of a script project and is similar to a read-only branched release. When
146 # creating deployments, the version to use must be specified.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700147 &quot;createTime&quot;: &quot;A String&quot;, # When the version was created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700148 &quot;versionNumber&quot;: 42, # The incremental ID that is created by Apps Script when a version is
149 # created. This is system assigned number and is immutable once created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700150 &quot;description&quot;: &quot;A String&quot;, # The description for this version.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700151 &quot;scriptId&quot;: &quot;A String&quot;, # The script project&#x27;s Drive ID.
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700153</div>
154
155<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700156 <code class="details" id="list">list(scriptId, pageToken=None, pageSize=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700157 <pre>List the versions of a script project.
158
159Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700160 scriptId: string, The script project&#x27;s Drive ID. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700161 pageToken: string, The token for continuing a previous list request on the next page. This
162should be set to the value of `nextPageToken` from a previous response.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700163 pageSize: integer, The maximum number of versions on each returned page. Defaults to 50.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700164 x__xgafv: string, V1 error format.
165 Allowed values
166 1 - v1 error format
167 2 - v2 error format
168
169Returns:
170 An object of the form:
171
172 { # Response with the list of the versions for the specified script project.
Bu Sun Kim65020912020-05-20 12:08:20 -0700173 &quot;versions&quot;: [ # The list of versions.
174 { # A resource representing a script project version. A version is a &quot;snapshot&quot;
175 # of a script project and is similar to a read-only branched release. When
176 # creating deployments, the version to use must be specified.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700177 &quot;createTime&quot;: &quot;A String&quot;, # When the version was created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700178 &quot;versionNumber&quot;: 42, # The incremental ID that is created by Apps Script when a version is
179 # created. This is system assigned number and is immutable once created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700180 &quot;description&quot;: &quot;A String&quot;, # The description for this version.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700181 &quot;scriptId&quot;: &quot;A String&quot;, # The script project&#x27;s Drive ID.
Bu Sun Kim65020912020-05-20 12:08:20 -0700182 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700183 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700184 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token use to fetch the next page of records. if not exist in the
185 # response, that means no more versions to list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700186 }</pre>
187</div>
188
189<div class="method">
190 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
191 <pre>Retrieves the next page of results.
192
193Args:
194 previous_request: The request for the previous page. (required)
195 previous_response: The response from the request for the previous page. (required)
196
197Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700198 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700199 page. Returns None if there are no more items in the collection.
200 </pre>
201</div>
202
203</body></html>