class Google::Apis::ScriptV1::File

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.

Attributes

create_time[RW]

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` @return [String]

function_set[RW]

A set of functions. No duplicates are permitted. Corresponds to the JSON property `functionSet` @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeFunctionSet]

last_modify_user[RW]

A simple user profile resource. Corresponds to the JSON property `lastModifyUser` @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeUser]

name[RW]

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` @return [String]

source[RW]

The file content. Corresponds to the JSON property `source` @return [String]

type[RW]

The type of the file. Corresponds to the JSON property `type` @return [String]

update_time[RW]

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` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/script_v1/classes.rb, line 390
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/script_v1/classes.rb, line 395
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