Class: Google::Apis::ScriptV1::GoogleAppsScriptTypeProcess

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

Representation of a single script process execution that was started from the script editor, a trigger, an application, or using the Apps Script API. This is distinct from the Operation resource, which only represents executions started via the Apps Script API.

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

Returns a new instance of GoogleAppsScriptTypeProcess



570
571
572
# File 'generated/google/apis/script_v1/classes.rb', line 570

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

Instance Attribute Details

#durationString

Duration the execution spent executing. Corresponds to the JSON property duration

Returns:

  • (String)


533
534
535
# File 'generated/google/apis/script_v1/classes.rb', line 533

def duration
  @duration
end

#executing_userString

User-facing name for the user executing the script. Corresponds to the JSON property executingUser

Returns:

  • (String)


538
539
540
# File 'generated/google/apis/script_v1/classes.rb', line 538

def executing_user
  @executing_user
end

#function_nameString

Name of the function the started the execution. Corresponds to the JSON property functionName

Returns:

  • (String)


543
544
545
# File 'generated/google/apis/script_v1/classes.rb', line 543

def function_name
  @function_name
end

#process_statusString

The executions status. Corresponds to the JSON property processStatus

Returns:

  • (String)


548
549
550
# File 'generated/google/apis/script_v1/classes.rb', line 548

def process_status
  @process_status
end

#process_typeString

The executions type. Corresponds to the JSON property processType

Returns:

  • (String)


553
554
555
# File 'generated/google/apis/script_v1/classes.rb', line 553

def process_type
  @process_type
end

#project_nameString

Name of the script being executed. Corresponds to the JSON property projectName

Returns:

  • (String)


558
559
560
# File 'generated/google/apis/script_v1/classes.rb', line 558

def project_name
  @project_name
end

#start_timeString

Time the execution started. Corresponds to the JSON property startTime

Returns:

  • (String)


563
564
565
# File 'generated/google/apis/script_v1/classes.rb', line 563

def start_time
  @start_time
end

#user_access_levelString

The executing users access level to the script. Corresponds to the JSON property userAccessLevel

Returns:

  • (String)


568
569
570
# File 'generated/google/apis/script_v1/classes.rb', line 568

def user_access_level
  @user_access_level
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



575
576
577
578
579
580
581
582
583
584
# File 'generated/google/apis/script_v1/classes.rb', line 575

def update!(**args)
  @duration = args[:duration] if args.key?(:duration)
  @executing_user = args[:executing_user] if args.key?(:executing_user)
  @function_name = args[:function_name] if args.key?(:function_name)
  @process_status = args[:process_status] if args.key?(:process_status)
  @process_type = args[:process_type] if args.key?(:process_type)
  @project_name = args[:project_name] if args.key?(:project_name)
  @start_time = args[:start_time] if args.key?(:start_time)
  @user_access_level = args[:user_access_level] if args.key?(:user_access_level)
end