Class: Google::Apis::ScriptV1::File
- Inherits:
-
Object
- Object
- Google::Apis::ScriptV1::File
- 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 more...
Overview
An individual file within a script project. A file is a third-party source code created by one or more developers. It can be a server-side JS code, HTML, or a configuration file. Each script project can contain multiple files.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Creation date timestamp.
-
#function_set ⇒ Google::Apis::ScriptV1::GoogleAppsScriptTypeFunctionSet
A set of functions.
-
#last_modify_user ⇒ Google::Apis::ScriptV1::GoogleAppsScriptTypeUser
A simple user profile resource.
-
#name ⇒ String
The name of the file.
-
#source ⇒ String
The file content.
-
#type ⇒ String
The type of the file.
-
#update_time ⇒ String
Last modified date timestamp.
Instance Method Summary collapse
-
#initialize(**args) ⇒ File
constructor
A new instance of File.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ File
Returns a new instance of File
382 383 384 |
# File 'generated/google/apis/script_v1/classes.rb', line 382 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Creation date timestamp.
This read-only field is only visible to users who have WRITER
permission for the script project.
Corresponds to the JSON property createTime
347 348 349 |
# File 'generated/google/apis/script_v1/classes.rb', line 347 def create_time @create_time end |
#function_set ⇒ Google::Apis::ScriptV1::GoogleAppsScriptTypeFunctionSet
A set of functions. No duplicates are permitted.
Corresponds to the JSON property functionSet
352 353 354 |
# File 'generated/google/apis/script_v1/classes.rb', line 352 def function_set @function_set end |
#last_modify_user ⇒ Google::Apis::ScriptV1::GoogleAppsScriptTypeUser
A simple user profile resource.
Corresponds to the JSON property lastModifyUser
357 358 359 |
# File 'generated/google/apis/script_v1/classes.rb', line 357 def last_modify_user @last_modify_user end |
#name ⇒ String
The name of the file. The file extension is not part of the file
name, which can be identified from the type field.
Corresponds to the JSON property name
363 364 365 |
# File 'generated/google/apis/script_v1/classes.rb', line 363 def name @name end |
#source ⇒ String
The file content.
Corresponds to the JSON property source
368 369 370 |
# File 'generated/google/apis/script_v1/classes.rb', line 368 def source @source end |
#type ⇒ String
The type of the file.
Corresponds to the JSON property type
373 374 375 |
# File 'generated/google/apis/script_v1/classes.rb', line 373 def type @type end |
#update_time ⇒ String
Last modified date timestamp.
This read-only field is only visible to users who have WRITER
permission for the script project.
Corresponds to the JSON property updateTime
380 381 382 |
# File 'generated/google/apis/script_v1/classes.rb', line 380 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
387 388 389 390 391 392 393 394 395 |
# File 'generated/google/apis/script_v1/classes.rb', line 387 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @function_set = args[:function_set] if args.key?(:function_set) @last_modify_user = args[:last_modify_user] if args.key?(:last_modify_user) @name = args[:name] if args.key?(:name) @source = args[:source] if args.key?(:source) @type = args[:type] if args.key?(:type) @update_time = args[:update_time] if args.key?(:update_time) end |