Class: DaytonaToolboxApiClient::ProcessApi
- Inherits:
-
Object
- Object
- DaytonaToolboxApiClient::ProcessApi
- Defined in:
- lib/daytona_toolbox_api_client/api/process_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#connect_pty_session(session_id, opts = {}) ⇒ nil
Connect to PTY session via WebSocket Establish a WebSocket connection to interact with a pseudo-terminal session.
-
#connect_pty_session_with_http_info(session_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Connect to PTY session via WebSocket Establish a WebSocket connection to interact with a pseudo-terminal session.
-
#create_pty_session(request, opts = {}) ⇒ PtyCreateResponse
Create a new PTY session Create a new pseudo-terminal session with specified configuration.
-
#create_pty_session_with_http_info(request, opts = {}) ⇒ Array<(PtyCreateResponse, Integer, Hash)>
Create a new PTY session Create a new pseudo-terminal session with specified configuration.
-
#create_session(request, opts = {}) ⇒ nil
Create a new session Create a new shell session for command execution.
-
#create_session_with_http_info(request, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Create a new session Create a new shell session for command execution.
-
#delete_pty_session(session_id, opts = {}) ⇒ Hash<String, Object>
Delete a PTY session Delete a pseudo-terminal session and terminate its process.
-
#delete_pty_session_with_http_info(session_id, opts = {}) ⇒ Array<(Hash<String, Object>, Integer, Hash)>
Delete a PTY session Delete a pseudo-terminal session and terminate its process.
-
#delete_session(session_id, opts = {}) ⇒ nil
Delete a session Delete an existing shell session.
-
#delete_session_with_http_info(session_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete a session Delete an existing shell session.
-
#execute_command(request, opts = {}) ⇒ ExecuteResponse
Execute a command Execute a shell command and return the output and exit code.
-
#execute_command_with_http_info(request, opts = {}) ⇒ Array<(ExecuteResponse, Integer, Hash)>
Execute a command Execute a shell command and return the output and exit code.
-
#get_pty_session(session_id, opts = {}) ⇒ PtySessionInfo
Get PTY session information Get detailed information about a specific pseudo-terminal session.
-
#get_pty_session_with_http_info(session_id, opts = {}) ⇒ Array<(PtySessionInfo, Integer, Hash)>
Get PTY session information Get detailed information about a specific pseudo-terminal session.
-
#get_session(session_id, opts = {}) ⇒ Session
Get session details Get details of a specific session including its commands.
-
#get_session_command(session_id, command_id, opts = {}) ⇒ Command
Get session command details Get details of a specific command within a session.
-
#get_session_command_logs(session_id, command_id, opts = {}) ⇒ String
Get session command logs Get logs for a specific command within a session.
-
#get_session_command_logs_with_http_info(session_id, command_id, opts = {}) ⇒ Array<(String, Integer, Hash)>
Get session command logs Get logs for a specific command within a session.
-
#get_session_command_with_http_info(session_id, command_id, opts = {}) ⇒ Array<(Command, Integer, Hash)>
Get session command details Get details of a specific command within a session.
-
#get_session_with_http_info(session_id, opts = {}) ⇒ Array<(Session, Integer, Hash)>
Get session details Get details of a specific session including its commands.
-
#initialize(api_client = ApiClient.default) ⇒ ProcessApi
constructor
A new instance of ProcessApi.
-
#list_pty_sessions(opts = {}) ⇒ PtyListResponse
List all PTY sessions Get a list of all active pseudo-terminal sessions.
-
#list_pty_sessions_with_http_info(opts = {}) ⇒ Array<(PtyListResponse, Integer, Hash)>
List all PTY sessions Get a list of all active pseudo-terminal sessions.
-
#list_sessions(opts = {}) ⇒ Array<Session>
List all sessions Get a list of all active shell sessions.
-
#list_sessions_with_http_info(opts = {}) ⇒ Array<(Array<Session>, Integer, Hash)>
List all sessions Get a list of all active shell sessions.
-
#resize_pty_session(session_id, request, opts = {}) ⇒ PtySessionInfo
Resize a PTY session Resize the terminal dimensions of a pseudo-terminal session.
-
#resize_pty_session_with_http_info(session_id, request, opts = {}) ⇒ Array<(PtySessionInfo, Integer, Hash)>
Resize a PTY session Resize the terminal dimensions of a pseudo-terminal session.
-
#send_input(session_id, command_id, request, opts = {}) ⇒ nil
Send input to command Send input data to a running command in a session for interactive execution.
-
#send_input_with_http_info(session_id, command_id, request, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Send input to command Send input data to a running command in a session for interactive execution.
-
#session_execute_command(session_id, request, opts = {}) ⇒ SessionExecuteResponse
Execute command in session Execute a command within an existing shell session.
-
#session_execute_command_with_http_info(session_id, request, opts = {}) ⇒ Array<(SessionExecuteResponse, Integer, Hash)>
Execute command in session Execute a command within an existing shell session.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ ProcessApi
Returns a new instance of ProcessApi.
19 20 21 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#connect_pty_session(session_id, opts = {}) ⇒ nil
Connect to PTY session via WebSocket Establish a WebSocket connection to interact with a pseudo-terminal session
27 28 29 30 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 27 def connect_pty_session(session_id, opts = {}) connect_pty_session_with_http_info(session_id, opts) nil end |
#connect_pty_session_with_http_info(session_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Connect to PTY session via WebSocket Establish a WebSocket connection to interact with a pseudo-terminal session
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 37 def connect_pty_session_with_http_info(session_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProcessApi.connect_pty_session ...' end # verify the required parameter 'session_id' is set if @api_client.config.client_side_validation && session_id.nil? fail ArgumentError, "Missing the required parameter 'session_id' when calling ProcessApi.connect_pty_session" end # resource path local_var_path = '/process/pty/{sessionId}/connect'.sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( :operation => :"ProcessApi.connect_pty_session", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProcessApi#connect_pty_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_pty_session(request, opts = {}) ⇒ PtyCreateResponse
Create a new PTY session Create a new pseudo-terminal session with specified configuration
88 89 90 91 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 88 def create_pty_session(request, opts = {}) data, _status_code, _headers = create_pty_session_with_http_info(request, opts) data end |
#create_pty_session_with_http_info(request, opts = {}) ⇒ Array<(PtyCreateResponse, Integer, Hash)>
Create a new PTY session Create a new pseudo-terminal session with specified configuration
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 98 def create_pty_session_with_http_info(request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProcessApi.create_pty_session ...' end # verify the required parameter 'request' is set if @api_client.config.client_side_validation && request.nil? fail ArgumentError, "Missing the required parameter 'request' when calling ProcessApi.create_pty_session" end # resource path local_var_path = '/process/pty' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(request) # return_type return_type = opts[:debug_return_type] || 'PtyCreateResponse' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( :operation => :"ProcessApi.create_pty_session", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProcessApi#create_pty_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_session(request, opts = {}) ⇒ nil
Create a new session Create a new shell session for command execution
156 157 158 159 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 156 def create_session(request, opts = {}) create_session_with_http_info(request, opts) nil end |
#create_session_with_http_info(request, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Create a new session Create a new shell session for command execution
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 166 def create_session_with_http_info(request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProcessApi.create_session ...' end # verify the required parameter 'request' is set if @api_client.config.client_side_validation && request.nil? fail ArgumentError, "Missing the required parameter 'request' when calling ProcessApi.create_session" end # resource path local_var_path = '/process/session' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(request) # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( :operation => :"ProcessApi.create_session", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProcessApi#create_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_pty_session(session_id, opts = {}) ⇒ Hash<String, Object>
Delete a PTY session Delete a pseudo-terminal session and terminate its process
222 223 224 225 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 222 def delete_pty_session(session_id, opts = {}) data, _status_code, _headers = delete_pty_session_with_http_info(session_id, opts) data end |
#delete_pty_session_with_http_info(session_id, opts = {}) ⇒ Array<(Hash<String, Object>, Integer, Hash)>
Delete a PTY session Delete a pseudo-terminal session and terminate its process
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 232 def delete_pty_session_with_http_info(session_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProcessApi.delete_pty_session ...' end # verify the required parameter 'session_id' is set if @api_client.config.client_side_validation && session_id.nil? fail ArgumentError, "Missing the required parameter 'session_id' when calling ProcessApi.delete_pty_session" end # resource path local_var_path = '/process/pty/{sessionId}'.sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Hash<String, Object>' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( :operation => :"ProcessApi.delete_pty_session", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProcessApi#delete_pty_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_session(session_id, opts = {}) ⇒ nil
Delete a session Delete an existing shell session
285 286 287 288 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 285 def delete_session(session_id, opts = {}) delete_session_with_http_info(session_id, opts) nil end |
#delete_session_with_http_info(session_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete a session Delete an existing shell session
295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 295 def delete_session_with_http_info(session_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProcessApi.delete_session ...' end # verify the required parameter 'session_id' is set if @api_client.config.client_side_validation && session_id.nil? fail ArgumentError, "Missing the required parameter 'session_id' when calling ProcessApi.delete_session" end # resource path local_var_path = '/process/session/{sessionId}'.sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( :operation => :"ProcessApi.delete_session", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProcessApi#delete_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#execute_command(request, opts = {}) ⇒ ExecuteResponse
Execute a command Execute a shell command and return the output and exit code
346 347 348 349 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 346 def execute_command(request, opts = {}) data, _status_code, _headers = execute_command_with_http_info(request, opts) data end |
#execute_command_with_http_info(request, opts = {}) ⇒ Array<(ExecuteResponse, Integer, Hash)>
Execute a command Execute a shell command and return the output and exit code
356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 356 def execute_command_with_http_info(request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProcessApi.execute_command ...' end # verify the required parameter 'request' is set if @api_client.config.client_side_validation && request.nil? fail ArgumentError, "Missing the required parameter 'request' when calling ProcessApi.execute_command" end # resource path local_var_path = '/process/execute' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(request) # return_type return_type = opts[:debug_return_type] || 'ExecuteResponse' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( :operation => :"ProcessApi.execute_command", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProcessApi#execute_command\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_pty_session(session_id, opts = {}) ⇒ PtySessionInfo
Get PTY session information Get detailed information about a specific pseudo-terminal session
414 415 416 417 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 414 def get_pty_session(session_id, opts = {}) data, _status_code, _headers = get_pty_session_with_http_info(session_id, opts) data end |
#get_pty_session_with_http_info(session_id, opts = {}) ⇒ Array<(PtySessionInfo, Integer, Hash)>
Get PTY session information Get detailed information about a specific pseudo-terminal session
424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 424 def get_pty_session_with_http_info(session_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProcessApi.get_pty_session ...' end # verify the required parameter 'session_id' is set if @api_client.config.client_side_validation && session_id.nil? fail ArgumentError, "Missing the required parameter 'session_id' when calling ProcessApi.get_pty_session" end # resource path local_var_path = '/process/pty/{sessionId}'.sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'PtySessionInfo' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( :operation => :"ProcessApi.get_pty_session", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProcessApi#get_pty_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_session(session_id, opts = {}) ⇒ Session
Get session details Get details of a specific session including its commands
477 478 479 480 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 477 def get_session(session_id, opts = {}) data, _status_code, _headers = get_session_with_http_info(session_id, opts) data end |
#get_session_command(session_id, command_id, opts = {}) ⇒ Command
Get session command details Get details of a specific command within a session
541 542 543 544 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 541 def get_session_command(session_id, command_id, opts = {}) data, _status_code, _headers = get_session_command_with_http_info(session_id, command_id, opts) data end |
#get_session_command_logs(session_id, command_id, opts = {}) ⇒ String
Get session command logs Get logs for a specific command within a session. Supports both HTTP and WebSocket streaming.
611 612 613 614 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 611 def get_session_command_logs(session_id, command_id, opts = {}) data, _status_code, _headers = get_session_command_logs_with_http_info(session_id, command_id, opts) data end |
#get_session_command_logs_with_http_info(session_id, command_id, opts = {}) ⇒ Array<(String, Integer, Hash)>
Get session command logs Get logs for a specific command within a session. Supports both HTTP and WebSocket streaming.
623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 623 def get_session_command_logs_with_http_info(session_id, command_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProcessApi.get_session_command_logs ...' end # verify the required parameter 'session_id' is set if @api_client.config.client_side_validation && session_id.nil? fail ArgumentError, "Missing the required parameter 'session_id' when calling ProcessApi.get_session_command_logs" end # verify the required parameter 'command_id' is set if @api_client.config.client_side_validation && command_id.nil? fail ArgumentError, "Missing the required parameter 'command_id' when calling ProcessApi.get_session_command_logs" end # resource path local_var_path = '/process/session/{sessionId}/command/{commandId}/logs'.sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s)).sub('{' + 'commandId' + '}', CGI.escape(command_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'follow'] = opts[:'follow'] if !opts[:'follow'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['text/plain']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( :operation => :"ProcessApi.get_session_command_logs", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProcessApi#get_session_command_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_session_command_with_http_info(session_id, command_id, opts = {}) ⇒ Array<(Command, Integer, Hash)>
Get session command details Get details of a specific command within a session
552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 552 def get_session_command_with_http_info(session_id, command_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProcessApi.get_session_command ...' end # verify the required parameter 'session_id' is set if @api_client.config.client_side_validation && session_id.nil? fail ArgumentError, "Missing the required parameter 'session_id' when calling ProcessApi.get_session_command" end # verify the required parameter 'command_id' is set if @api_client.config.client_side_validation && command_id.nil? fail ArgumentError, "Missing the required parameter 'command_id' when calling ProcessApi.get_session_command" end # resource path local_var_path = '/process/session/{sessionId}/command/{commandId}'.sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s)).sub('{' + 'commandId' + '}', CGI.escape(command_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Command' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( :operation => :"ProcessApi.get_session_command", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProcessApi#get_session_command\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_session_with_http_info(session_id, opts = {}) ⇒ Array<(Session, Integer, Hash)>
Get session details Get details of a specific session including its commands
487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 487 def get_session_with_http_info(session_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProcessApi.get_session ...' end # verify the required parameter 'session_id' is set if @api_client.config.client_side_validation && session_id.nil? fail ArgumentError, "Missing the required parameter 'session_id' when calling ProcessApi.get_session" end # resource path local_var_path = '/process/session/{sessionId}'.sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Session' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( :operation => :"ProcessApi.get_session", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProcessApi#get_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_pty_sessions(opts = {}) ⇒ PtyListResponse
List all PTY sessions Get a list of all active pseudo-terminal sessions
680 681 682 683 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 680 def list_pty_sessions(opts = {}) data, _status_code, _headers = list_pty_sessions_with_http_info(opts) data end |
#list_pty_sessions_with_http_info(opts = {}) ⇒ Array<(PtyListResponse, Integer, Hash)>
List all PTY sessions Get a list of all active pseudo-terminal sessions
689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 689 def list_pty_sessions_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProcessApi.list_pty_sessions ...' end # resource path local_var_path = '/process/pty' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'PtyListResponse' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( :operation => :"ProcessApi.list_pty_sessions", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProcessApi#list_pty_sessions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_sessions(opts = {}) ⇒ Array<Session>
List all sessions Get a list of all active shell sessions
737 738 739 740 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 737 def list_sessions(opts = {}) data, _status_code, _headers = list_sessions_with_http_info(opts) data end |
#list_sessions_with_http_info(opts = {}) ⇒ Array<(Array<Session>, Integer, Hash)>
List all sessions Get a list of all active shell sessions
746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 746 def list_sessions_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProcessApi.list_sessions ...' end # resource path local_var_path = '/process/session' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Array<Session>' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( :operation => :"ProcessApi.list_sessions", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProcessApi#list_sessions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#resize_pty_session(session_id, request, opts = {}) ⇒ PtySessionInfo
Resize a PTY session Resize the terminal dimensions of a pseudo-terminal session
796 797 798 799 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 796 def resize_pty_session(session_id, request, opts = {}) data, _status_code, _headers = resize_pty_session_with_http_info(session_id, request, opts) data end |
#resize_pty_session_with_http_info(session_id, request, opts = {}) ⇒ Array<(PtySessionInfo, Integer, Hash)>
Resize a PTY session Resize the terminal dimensions of a pseudo-terminal session
807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 807 def resize_pty_session_with_http_info(session_id, request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProcessApi.resize_pty_session ...' end # verify the required parameter 'session_id' is set if @api_client.config.client_side_validation && session_id.nil? fail ArgumentError, "Missing the required parameter 'session_id' when calling ProcessApi.resize_pty_session" end # verify the required parameter 'request' is set if @api_client.config.client_side_validation && request.nil? fail ArgumentError, "Missing the required parameter 'request' when calling ProcessApi.resize_pty_session" end # resource path local_var_path = '/process/pty/{sessionId}/resize'.sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(request) # return_type return_type = opts[:debug_return_type] || 'PtySessionInfo' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( :operation => :"ProcessApi.resize_pty_session", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProcessApi#resize_pty_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#send_input(session_id, command_id, request, opts = {}) ⇒ nil
Send input to command Send input data to a running command in a session for interactive execution
871 872 873 874 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 871 def send_input(session_id, command_id, request, opts = {}) send_input_with_http_info(session_id, command_id, request, opts) nil end |
#send_input_with_http_info(session_id, command_id, request, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Send input to command Send input data to a running command in a session for interactive execution
883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 883 def send_input_with_http_info(session_id, command_id, request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProcessApi.send_input ...' end # verify the required parameter 'session_id' is set if @api_client.config.client_side_validation && session_id.nil? fail ArgumentError, "Missing the required parameter 'session_id' when calling ProcessApi.send_input" end # verify the required parameter 'command_id' is set if @api_client.config.client_side_validation && command_id.nil? fail ArgumentError, "Missing the required parameter 'command_id' when calling ProcessApi.send_input" end # verify the required parameter 'request' is set if @api_client.config.client_side_validation && request.nil? fail ArgumentError, "Missing the required parameter 'request' when calling ProcessApi.send_input" end # resource path local_var_path = '/process/session/{sessionId}/command/{commandId}/input'.sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s)).sub('{' + 'commandId' + '}', CGI.escape(command_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(request) # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( :operation => :"ProcessApi.send_input", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProcessApi#send_input\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#session_execute_command(session_id, request, opts = {}) ⇒ SessionExecuteResponse
Execute command in session Execute a command within an existing shell session
948 949 950 951 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 948 def session_execute_command(session_id, request, opts = {}) data, _status_code, _headers = session_execute_command_with_http_info(session_id, request, opts) data end |
#session_execute_command_with_http_info(session_id, request, opts = {}) ⇒ Array<(SessionExecuteResponse, Integer, Hash)>
Execute command in session Execute a command within an existing shell session
959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 |
# File 'lib/daytona_toolbox_api_client/api/process_api.rb', line 959 def session_execute_command_with_http_info(session_id, request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProcessApi.session_execute_command ...' end # verify the required parameter 'session_id' is set if @api_client.config.client_side_validation && session_id.nil? fail ArgumentError, "Missing the required parameter 'session_id' when calling ProcessApi.session_execute_command" end # verify the required parameter 'request' is set if @api_client.config.client_side_validation && request.nil? fail ArgumentError, "Missing the required parameter 'request' when calling ProcessApi.session_execute_command" end # resource path local_var_path = '/process/session/{sessionId}/exec'.sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(request) # return_type return_type = opts[:debug_return_type] || 'SessionExecuteResponse' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( :operation => :"ProcessApi.session_execute_command", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProcessApi#session_execute_command\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |