Class: Google::Apis::ScriptV1::Content
- Inherits:
-
Object
- Object
- Google::Apis::ScriptV1::Content
- 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
-
#files ⇒ Array<Google::Apis::ScriptV1::File>
The list of script project files.
-
#script_id ⇒ String
The script project's Drive ID.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Content
constructor
A new instance of Content.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Content
Returns a new instance of Content
42 43 44 |
# File 'generated/google/apis/script_v1/classes.rb', line 42 def initialize(**args) update!(**args) end |
Instance Attribute Details
#files ⇒ Array<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
35 36 37 |
# File 'generated/google/apis/script_v1/classes.rb', line 35 def files @files end |
#script_id ⇒ String
The script project's Drive ID.
Corresponds to the JSON property scriptId
40 41 42 |
# File 'generated/google/apis/script_v1/classes.rb', line 40 def script_id @script_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
47 48 49 50 |
# File 'generated/google/apis/script_v1/classes.rb', line 47 def update!(**args) @files = args[:files] if args.key?(:files) @script_id = args[:script_id] if args.key?(:script_id) end |