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

Constructor Details

#initialize(**args) ⇒ CreateProjectRequest

Returns a new instance of CreateProjectRequest.



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

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)


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

def parent_id
  @parent_id
end

#titleString

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

Returns:

  • (String)


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

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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