Class: Google::Apis::ScriptV1::Version

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Version

Returns a new instance of Version.



1230
1231
1232
# File 'generated/google/apis/script_v1/classes.rb', line 1230

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

When the version was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1212
1213
1214
# File 'generated/google/apis/script_v1/classes.rb', line 1212

def create_time
  @create_time
end

#descriptionString

The description for this version. Corresponds to the JSON property description

Returns:

  • (String)


1217
1218
1219
# File 'generated/google/apis/script_v1/classes.rb', line 1217

def description
  @description
end

#script_idString

The script project's Drive ID. Corresponds to the JSON property scriptId

Returns:

  • (String)


1222
1223
1224
# File 'generated/google/apis/script_v1/classes.rb', line 1222

def script_id
  @script_id
end

#version_numberFixnum

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

Returns:

  • (Fixnum)


1228
1229
1230
# File 'generated/google/apis/script_v1/classes.rb', line 1228

def version_number
  @version_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1235
1236
1237
1238
1239
1240
# File 'generated/google/apis/script_v1/classes.rb', line 1235

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