Class: Google::Apis::ScriptV1::CreateProjectRequest

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

Request to create a script project.

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) ⇒ CreateProjectRequest

Returns a new instance of CreateProjectRequest.



69
70
71
# File 'generated/google/apis/script_v1/classes.rb', line 69

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

Instance Attribute Details

#parent_idString

The Drive ID of a parent file that the created script project is bound to. This is usually the ID of a Google Doc, Google Sheet, Google Form, or Google Slides file. If not set, a standalone script project is created. Corresponds to the JSON property parentId

Returns:

  • (String)


62
63
64
# File 'generated/google/apis/script_v1/classes.rb', line 62

def parent_id
  @parent_id
end

#titleString

The title for the project. Corresponds to the JSON property title

Returns:

  • (String)


67
68
69
# File 'generated/google/apis/script_v1/classes.rb', line 67

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



74
75
76
77
# File 'generated/google/apis/script_v1/classes.rb', line 74

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