Class: Google::Apis::DataprocV1::SparkConnectSessionInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dataproc_v1/classes.rb,
lib/google/apis/dataproc_v1/representations.rb,
lib/google/apis/dataproc_v1/representations.rb

Overview

Represents session-level information for Spark Connect

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SparkConnectSessionInfo

Returns a new instance of SparkConnectSessionInfo.



8934
8935
8936
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8934

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

Instance Attribute Details

#finish_timestampFixnum

Timestamp when the session finished. Corresponds to the JSON property finishTimestamp

Returns:

  • (Fixnum)


8912
8913
8914
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8912

def finish_timestamp
  @finish_timestamp
end

#session_idString

Required. Session ID of the session. Corresponds to the JSON property sessionId

Returns:

  • (String)


8917
8918
8919
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8917

def session_id
  @session_id
end

#start_timestampFixnum

Timestamp when the session started. Corresponds to the JSON property startTimestamp

Returns:

  • (Fixnum)


8922
8923
8924
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8922

def start_timestamp
  @start_timestamp
end

#total_executionFixnum

Optional. Total number of executions in the session. Corresponds to the JSON property totalExecution

Returns:

  • (Fixnum)


8927
8928
8929
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8927

def total_execution
  @total_execution
end

#user_idString

User ID of the user who started the session. Corresponds to the JSON property userId

Returns:

  • (String)


8932
8933
8934
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8932

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8939
8940
8941
8942
8943
8944
8945
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8939

def update!(**args)
  @finish_timestamp = args[:finish_timestamp] if args.key?(:finish_timestamp)
  @session_id = args[:session_id] if args.key?(:session_id)
  @start_timestamp = args[:start_timestamp] if args.key?(:start_timestamp)
  @total_execution = args[:total_execution] if args.key?(:total_execution)
  @user_id = args[:user_id] if args.key?(:user_id)
end