Class: DSP::RunInTerminalResponse

Inherits:
DSPBase
  • Object
show all
Defined in:
lib/dsp/dsp_protocol.rb

Overview

interface RunInTerminalResponse extends Response {

    body: {
        /** The process ID. The value should be less than or equal to 2147483647 (2^31 - 1). */
        processId?: number;
        /** The process ID of the terminal shell. The value should be less than or equal to 2147483647 (2^31 - 1). */
        shellProcessId?: number;
    };
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ RunInTerminalResponse

Returns a new instance of RunInTerminalResponse.



820
821
822
823
# File 'lib/dsp/dsp_protocol.rb', line 820

def initialize(initial_hash = nil)
  super
  @optional_method_names = %i[message]
end

Instance Attribute Details

#bodyObject

type: {



812
813
814
# File 'lib/dsp/dsp_protocol.rb', line 812

def body
  @body
end

#commandObject

type: {



812
813
814
# File 'lib/dsp/dsp_protocol.rb', line 812

def command
  @command
end

#messageObject

type: {



812
813
814
# File 'lib/dsp/dsp_protocol.rb', line 812

def message
  @message
end

#request_seqObject

/** The process ID. The value should be less than or equal to 2147483647 (2^31 - 1). */

    processId?: number;
    /** The process ID of the terminal shell. The value should be less than or equal to 2147483647 (2^31 - 1). */
    shellProcessId?: number;
}


818
819
820
# File 'lib/dsp/dsp_protocol.rb', line 818

def request_seq
  @request_seq
end

#seqObject

type: {



812
813
814
# File 'lib/dsp/dsp_protocol.rb', line 812

def seq
  @seq
end

#successObject

type: {



812
813
814
# File 'lib/dsp/dsp_protocol.rb', line 812

def success
  @success
end

#typeObject

type: {



812
813
814
# File 'lib/dsp/dsp_protocol.rb', line 812

def type
  @type
end

Instance Method Details

#from_h!(value) ⇒ Object



825
826
827
828
829
830
831
832
833
834
835
# File 'lib/dsp/dsp_protocol.rb', line 825

def from_h!(value)
  value = {} if value.nil?
  self.body = value['body'] # Unknown type
  self.request_seq = value['request_seq']
  self.success = value['success'] # Unknown type
  self.command = value['command']
  self.message = value['message']
  self.seq = value['seq']
  self.type = value['type']
  self
end