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

Inherits:
Object
  • Object
show all
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

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

Constructor Details

#initialize(**args) ⇒ GoogleAppsScriptTypeProcess

Returns a new instance of GoogleAppsScriptTypeProcess.



562
563
564
# File 'lib/google/apis/script_v1/classes.rb', line 562

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

Instance Attribute Details

#durationString

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

Returns:

  • (String)


525
526
527
# File 'lib/google/apis/script_v1/classes.rb', line 525

def duration
  @duration
end

#function_nameString

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

Returns:

  • (String)


530
531
532
# File 'lib/google/apis/script_v1/classes.rb', line 530

def function_name
  @function_name
end

#process_statusString

The executions status. Corresponds to the JSON property processStatus

Returns:

  • (String)


535
536
537
# File 'lib/google/apis/script_v1/classes.rb', line 535

def process_status
  @process_status
end

#process_typeString

The executions type. Corresponds to the JSON property processType

Returns:

  • (String)


540
541
542
# File 'lib/google/apis/script_v1/classes.rb', line 540

def process_type
  @process_type
end

#project_nameString

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

Returns:

  • (String)


545
546
547
# File 'lib/google/apis/script_v1/classes.rb', line 545

def project_name
  @project_name
end

#runtime_versionString

Which version of maestro to use to execute the script. Corresponds to the JSON property runtimeVersion

Returns:

  • (String)


550
551
552
# File 'lib/google/apis/script_v1/classes.rb', line 550

def runtime_version
  @runtime_version
end

#start_timeString

Time the execution started. Corresponds to the JSON property startTime

Returns:

  • (String)


555
556
557
# File 'lib/google/apis/script_v1/classes.rb', line 555

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)


560
561
562
# File 'lib/google/apis/script_v1/classes.rb', line 560

def user_access_level
  @user_access_level
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



567
568
569
570
571
572
573
574
575
576
# File 'lib/google/apis/script_v1/classes.rb', line 567

def update!(**args)
  @duration = args[:duration] if args.key?(:duration)
  @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)
  @runtime_version = args[:runtime_version] if args.key?(:runtime_version)
  @start_time = args[:start_time] if args.key?(:start_time)
  @user_access_level = args[:user_access_level] if args.key?(:user_access_level)
end