Class: Google::Apis::ScriptV1::CreateProjectRequest
- Inherits:
-
Object
- Object
- Google::Apis::ScriptV1::CreateProjectRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/script_v1/classes.rb,
lib/google/apis/script_v1/representations.rb,
lib/google/apis/script_v1/representations.rb
Overview
Request to create a script project. Request to create a script project.
Instance Attribute Summary collapse
-
#parent_id ⇒ String
The Drive ID of a parent file that the created script project is bound to.
-
#title ⇒ String
The title for the project.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreateProjectRequest
constructor
A new instance of CreateProjectRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CreateProjectRequest
Returns a new instance of CreateProjectRequest.
68 69 70 |
# File 'lib/google/apis/script_v1/classes.rb', line 68 def initialize(**args) update!(**args) end |
Instance Attribute Details
#parent_id ⇒ String
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
61 62 63 |
# File 'lib/google/apis/script_v1/classes.rb', line 61 def parent_id @parent_id end |
#title ⇒ String
The title for the project.
Corresponds to the JSON property title
66 67 68 |
# File 'lib/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 'lib/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 |