Class: Google::Apis::ScriptV1::CreateProjectRequest
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ScriptV1::CreateProjectRequest
 
- 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
- 
  
    
      #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. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_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
| 62 63 64 | # File 'generated/google/apis/script_v1/classes.rb', line 62 def parent_id @parent_id end | 
#title ⇒ String
The title for the project.
Corresponds to the JSON property title
| 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 |