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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#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:



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

def files
  @files
end

#script_idString

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

Returns:

  • (String)


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