1<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">
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="#create">create(scriptId, body=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Creates a new immutable version using the current code, with a unique version number.</p>
83<p class="toc_element">
84  <code><a href="#get">get(scriptId, versionNumber, x__xgafv=None)</a></code></p>
85<p class="firstline">Gets a version of a script project.</p>
86<p class="toc_element">
87  <code><a href="#list">list(scriptId, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
88<p class="firstline">List the versions of a script project.</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">
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="create">create(scriptId, body=None, x__xgafv=None)</code>
100  <pre>Creates a new immutable version using the current code, with a unique version number.
101
102Args:
103  scriptId: string, The script project&#x27;s Drive ID. (required)
104  body: object, The request body.
105    The object takes the form of:
106
107{ # A resource representing a script project version. A version is a &quot;snapshot&quot; of a script project and is similar to a read-only branched release. When creating deployments, the version to use must be specified.
108  &quot;createTime&quot;: &quot;A String&quot;, # When the version was created.
109  &quot;description&quot;: &quot;A String&quot;, # The description for this version.
110  &quot;scriptId&quot;: &quot;A String&quot;, # The script project&#x27;s Drive ID.
111  &quot;versionNumber&quot;: 42, # The incremental ID that is created by Apps Script when a version is created. This is system assigned number and is immutable once created.
112}
113
114  x__xgafv: string, V1 error format.
115    Allowed values
116      1 - v1 error format
117      2 - v2 error format
118
119Returns:
120  An object of the form:
121
122    { # A resource representing a script project version. A version is a &quot;snapshot&quot; of a script project and is similar to a read-only branched release. When creating deployments, the version to use must be specified.
123  &quot;createTime&quot;: &quot;A String&quot;, # When the version was created.
124  &quot;description&quot;: &quot;A String&quot;, # The description for this version.
125  &quot;scriptId&quot;: &quot;A String&quot;, # The script project&#x27;s Drive ID.
126  &quot;versionNumber&quot;: 42, # The incremental ID that is created by Apps Script when a version is created. This is system assigned number and is immutable once created.
127}</pre>
128</div>
129
130<div class="method">
131    <code class="details" id="get">get(scriptId, versionNumber, x__xgafv=None)</code>
132  <pre>Gets a version of a script project.
133
134Args:
135  scriptId: string, The script project&#x27;s Drive ID. (required)
136  versionNumber: integer, The version number. (required)
137  x__xgafv: string, V1 error format.
138    Allowed values
139      1 - v1 error format
140      2 - v2 error format
141
142Returns:
143  An object of the form:
144
145    { # A resource representing a script project version. A version is a &quot;snapshot&quot; of a script project and is similar to a read-only branched release. When creating deployments, the version to use must be specified.
146  &quot;createTime&quot;: &quot;A String&quot;, # When the version was created.
147  &quot;description&quot;: &quot;A String&quot;, # The description for this version.
148  &quot;scriptId&quot;: &quot;A String&quot;, # The script project&#x27;s Drive ID.
149  &quot;versionNumber&quot;: 42, # The incremental ID that is created by Apps Script when a version is created. This is system assigned number and is immutable once created.
150}</pre>
151</div>
152
153<div class="method">
154    <code class="details" id="list">list(scriptId, pageSize=None, pageToken=None, x__xgafv=None)</code>
155  <pre>List the versions of a script project.
156
157Args:
158  scriptId: string, The script project&#x27;s Drive ID. (required)
159  pageSize: integer, The maximum number of versions on each returned page. Defaults to 50.
160  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.
161  x__xgafv: string, V1 error format.
162    Allowed values
163      1 - v1 error format
164      2 - v2 error format
165
166Returns:
167  An object of the form:
168
169    { # Response with the list of the versions for the specified script project.
170  &quot;nextPageToken&quot;: &quot;A String&quot;, # The token use to fetch the next page of records. if not exist in the response, that means no more versions to list.
171  &quot;versions&quot;: [ # The list of versions.
172    { # A resource representing a script project version. A version is a &quot;snapshot&quot; of a script project and is similar to a read-only branched release. When creating deployments, the version to use must be specified.
173      &quot;createTime&quot;: &quot;A String&quot;, # When the version was created.
174      &quot;description&quot;: &quot;A String&quot;, # The description for this version.
175      &quot;scriptId&quot;: &quot;A String&quot;, # The script project&#x27;s Drive ID.
176      &quot;versionNumber&quot;: 42, # The incremental ID that is created by Apps Script when a version is created. This is system assigned number and is immutable once created.
177    },
178  ],
179}</pre>
180</div>
181
182<div class="method">
183    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
184  <pre>Retrieves the next page of results.
185
186Args:
187  previous_request: The request for the previous page. (required)
188  previous_response: The response from the request for the previous page. (required)
189
190Returns:
191  A request object that you can call &#x27;execute()&#x27; on to request the next
192  page. Returns None if there are no more items in the collection.
193    </pre>
194</div>
195
196</body></html>