Class: Google::Apis::ScriptV1::Content

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

The Content resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Content

Returns a new instance of Content.



41
42
43
# File 'generated/google/apis/script_v1/classes.rb', line 41

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

Instance Attribute Details

#filesArray<Google::Apis::ScriptV1::File>

The list of script project files. One of the files is a script manifest; it must be named "appsscript", must have type of JSON, and include the manifest configurations for the project. Corresponds to the JSON property files

Returns:



34
35
36
# File 'generated/google/apis/script_v1/classes.rb', line 34

def files
  @files
end

#script_idString

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

Returns:

  • (String)


39
40
41
# File 'generated/google/apis/script_v1/classes.rb', line 39

def script_id
  @script_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



46
47
48
49
# File 'generated/google/apis/script_v1/classes.rb', line 46

def update!(**args)
  @files = args[:files] if args.key?(:files)
  @script_id = args[:script_id] if args.key?(:script_id)
end