Class: Google::Apis::ScriptV1::Project

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

The script project resource.

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

Returns a new instance of Project



999
1000
1001
# File 'generated/google/apis/script_v1/classes.rb', line 999

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

Instance Attribute Details

#create_timeString

When the script was created. Corresponds to the JSON property createTime

Returns:

  • (String)


965
966
967
# File 'generated/google/apis/script_v1/classes.rb', line 965

def create_time
  @create_time
end

#creatorGoogle::Apis::ScriptV1::GoogleAppsScriptTypeUser

A simple user profile resource. Corresponds to the JSON property creator



970
971
972
# File 'generated/google/apis/script_v1/classes.rb', line 970

def creator
  @creator
end

#last_modify_userGoogle::Apis::ScriptV1::GoogleAppsScriptTypeUser

A simple user profile resource. Corresponds to the JSON property lastModifyUser



975
976
977
# File 'generated/google/apis/script_v1/classes.rb', line 975

def last_modify_user
  @last_modify_user
end

#parent_idString

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

Returns:

  • (String)


982
983
984
# File 'generated/google/apis/script_v1/classes.rb', line 982

def parent_id
  @parent_id
end

#script_idString

The script project's Drive ID. Corresponds to the JSON property scriptId

Returns:

  • (String)


987
988
989
# File 'generated/google/apis/script_v1/classes.rb', line 987

def script_id
  @script_id
end

#titleString

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

Returns:

  • (String)


992
993
994
# File 'generated/google/apis/script_v1/classes.rb', line 992

def title
  @title
end

#update_timeString

When the script was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


997
998
999
# File 'generated/google/apis/script_v1/classes.rb', line 997

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1004
1005
1006
1007
1008
1009
1010
1011
1012
# File 'generated/google/apis/script_v1/classes.rb', line 1004

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