Class: Google::Apis::ScriptV1::Project
- Inherits:
-
Object
- Object
- Google::Apis::ScriptV1::Project
- 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 script project resource.
Instance Attribute Summary collapse
-
#create_time ⇒ String
When the script was created.
-
#creator ⇒ Google::Apis::ScriptV1::GoogleAppsScriptTypeUser
A simple user profile resource.
-
#last_modify_user ⇒ Google::Apis::ScriptV1::GoogleAppsScriptTypeUser
A simple user profile resource.
-
#parent_id ⇒ String
The parent's Drive ID that the script will be attached to.
-
#script_id ⇒ String
The script project's Drive ID.
-
#title ⇒ String
The title for the project.
-
#update_time ⇒ String
When the script was last updated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Project
constructor
A new instance of Project.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Project
Returns a new instance of Project
943 944 945 |
# File 'generated/google/apis/script_v1/classes.rb', line 943 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
When the script was created.
Corresponds to the JSON property createTime
909 910 911 |
# File 'generated/google/apis/script_v1/classes.rb', line 909 def create_time @create_time end |
#creator ⇒ Google::Apis::ScriptV1::GoogleAppsScriptTypeUser
A simple user profile resource.
Corresponds to the JSON property creator
914 915 916 |
# File 'generated/google/apis/script_v1/classes.rb', line 914 def creator @creator end |
#last_modify_user ⇒ Google::Apis::ScriptV1::GoogleAppsScriptTypeUser
A simple user profile resource.
Corresponds to the JSON property lastModifyUser
919 920 921 |
# File 'generated/google/apis/script_v1/classes.rb', line 919 def last_modify_user @last_modify_user end |
#parent_id ⇒ String
The parent's Drive ID that the script will be attached to. This is usually
the ID of a Google Document or Google Sheet. This filed is optional, and
if not set, a stand-alone script will be created.
Corresponds to the JSON property parentId
926 927 928 |
# File 'generated/google/apis/script_v1/classes.rb', line 926 def parent_id @parent_id end |
#script_id ⇒ String
The script project's Drive ID.
Corresponds to the JSON property scriptId
931 932 933 |
# File 'generated/google/apis/script_v1/classes.rb', line 931 def script_id @script_id end |
#title ⇒ String
The title for the project.
Corresponds to the JSON property title
936 937 938 |
# File 'generated/google/apis/script_v1/classes.rb', line 936 def title @title end |
#update_time ⇒ String
When the script was last updated.
Corresponds to the JSON property updateTime
941 942 943 |
# File 'generated/google/apis/script_v1/classes.rb', line 941 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
948 949 950 951 952 953 954 955 956 |
# File 'generated/google/apis/script_v1/classes.rb', line 948 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @creator = args[:creator] if args.key?(:creator) @last_modify_user = args[:last_modify_user] if args.key?(:last_modify_user) @parent_id = args[:parent_id] if args.key?(:parent_id) @script_id = args[:script_id] if args.key?(:script_id) @title = args[:title] if args.key?(:title) @update_time = args[:update_time] if args.key?(:update_time) end |