Class: Google::Apis::ScriptV1::Version
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ScriptV1::Version
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/script_v1/classes.rb,
 generated/google/apis/script_v1/representations.rb,
 generated/google/apis/script_v1/representations.rb
Overview
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.
Instance Attribute Summary collapse
- 
  
    
      #create_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    When the version was created. 
- 
  
    
      #description  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The description for this version. 
- 
  
    
      #script_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The script project's Drive ID. 
- 
  
    
      #version_number  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The incremental ID that is created by Apps Script when a version is created. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Version 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Version. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Version
Returns a new instance of Version
| 1124 1125 1126 | # File 'generated/google/apis/script_v1/classes.rb', line 1124 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#create_time ⇒ String
When the version was created.
Corresponds to the JSON property createTime
| 1106 1107 1108 | # File 'generated/google/apis/script_v1/classes.rb', line 1106 def create_time @create_time end | 
#description ⇒ String
The description for this version.
Corresponds to the JSON property description
| 1111 1112 1113 | # File 'generated/google/apis/script_v1/classes.rb', line 1111 def description @description end | 
#script_id ⇒ String
The script project's Drive ID.
Corresponds to the JSON property scriptId
| 1116 1117 1118 | # File 'generated/google/apis/script_v1/classes.rb', line 1116 def script_id @script_id end | 
#version_number ⇒ Fixnum
The incremental ID that is created by Apps Script when a version is
created. This is system assigned number and is immutable once created.
Corresponds to the JSON property versionNumber
| 1122 1123 1124 | # File 'generated/google/apis/script_v1/classes.rb', line 1122 def version_number @version_number end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1129 1130 1131 1132 1133 1134 | # File 'generated/google/apis/script_v1/classes.rb', line 1129 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @script_id = args[:script_id] if args.key?(:script_id) @version_number = args[:version_number] if args.key?(:version_number) end |