AI-generated Key Takeaways
- 
          
A Version is a snapshot of a script project, similar to a read-only branched release, used when creating deployments.
 - 
          
The JSON representation of a Version includes
scriptId,versionNumber,description, andcreateTime. - 
          
Key fields include
scriptId(the project's Drive ID),versionNumber(a system-assigned incremental ID),description, andcreateTime(when the version was created). - 
          
Available methods for Versions include
create(to make a new version),get(to retrieve a specific version), andlist(to list project versions). 
Resource: Version
A resource representing a script project version. A version is a "snapshot" of a script project and is similar to a read-only branched release. When creating deployments, the version to use must be specified.
| JSON representation | 
|---|
{ "scriptId": string, "versionNumber": integer, "description": string, "createTime": string }  | 
              
| Fields | |
|---|---|
scriptId | 
                
                   
 The script project's Drive ID.  | 
              
versionNumber | 
                
                   
 The incremental ID that is created by Apps Script when a version is created. This is system assigned number and is immutable once created.  | 
              
description | 
                
                   
 The description for this version.  | 
              
createTime | 
                
                   
 When the version was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples:   | 
              
Methods | 
            |
|---|---|
                
 | 
              Creates a new immutable version using the current code, with a unique version number. | 
                
 | 
              Gets a version of a script project. | 
                
 | 
              List the versions of a script project. |