Class: DaytonaApiClient::WorkspaceApi
- Inherits:
-
Object
- Object
- DaytonaApiClient::WorkspaceApi
- Defined in:
- lib/daytona_api_client/api/workspace_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#archive_workspace_deprecated(workspace_id, opts = {}) ⇒ nil
- DEPRECATED
-
Archive workspace.
-
#archive_workspace_deprecated_with_http_info(workspace_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
- DEPRECATED
-
Archive workspace.
-
#create_backup_workspace_deprecated(workspace_id, opts = {}) ⇒ Workspace
- DEPRECATED
-
Create workspace backup.
-
#create_backup_workspace_deprecated_with_http_info(workspace_id, opts = {}) ⇒ Array<(Workspace, Integer, Hash)>
- DEPRECATED
-
Create workspace backup.
-
#create_workspace_deprecated(create_workspace, opts = {}) ⇒ Workspace
- DEPRECATED
-
Create a new workspace.
-
#create_workspace_deprecated_with_http_info(create_workspace, opts = {}) ⇒ Array<(Workspace, Integer, Hash)>
- DEPRECATED
-
Create a new workspace.
-
#delete_workspace_deprecated(workspace_id, force, opts = {}) ⇒ nil
- DEPRECATED
-
Delete workspace.
-
#delete_workspace_deprecated_with_http_info(workspace_id, force, opts = {}) ⇒ Array<(nil, Integer, Hash)>
- DEPRECATED
-
Delete workspace.
-
#get_build_logs_workspace_deprecated(workspace_id, opts = {}) ⇒ nil
- DEPRECATED
-
Get build logs.
-
#get_build_logs_workspace_deprecated_with_http_info(workspace_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
- DEPRECATED
-
Get build logs.
-
#get_port_preview_url_workspace_deprecated(workspace_id, port, opts = {}) ⇒ PortPreviewUrl
- DEPRECATED
-
Get preview URL for a workspace port.
-
#get_port_preview_url_workspace_deprecated_with_http_info(workspace_id, port, opts = {}) ⇒ Array<(PortPreviewUrl, Integer, Hash)>
- DEPRECATED
-
Get preview URL for a workspace port.
-
#get_workspace_deprecated(workspace_id, opts = {}) ⇒ Workspace
- DEPRECATED
-
Get workspace details.
-
#get_workspace_deprecated_with_http_info(workspace_id, opts = {}) ⇒ Array<(Workspace, Integer, Hash)>
- DEPRECATED
-
Get workspace details.
-
#initialize(api_client = ApiClient.default) ⇒ WorkspaceApi
constructor
A new instance of WorkspaceApi.
-
#list_workspaces_deprecated(opts = {}) ⇒ Array<Workspace>
- DEPRECATED
-
List all workspaces.
-
#list_workspaces_deprecated_with_http_info(opts = {}) ⇒ Array<(Array<Workspace>, Integer, Hash)>
- DEPRECATED
-
List all workspaces.
-
#replace_labels_workspace_deprecated(workspace_id, sandbox_labels, opts = {}) ⇒ SandboxLabels
- DEPRECATED
-
Replace workspace labels.
-
#replace_labels_workspace_deprecated_with_http_info(workspace_id, sandbox_labels, opts = {}) ⇒ Array<(SandboxLabels, Integer, Hash)>
- DEPRECATED
-
Replace workspace labels.
-
#set_auto_archive_interval_workspace_deprecated(workspace_id, interval, opts = {}) ⇒ nil
- DEPRECATED
-
Set workspace auto-archive interval.
-
#set_auto_archive_interval_workspace_deprecated_with_http_info(workspace_id, interval, opts = {}) ⇒ Array<(nil, Integer, Hash)>
- DEPRECATED
-
Set workspace auto-archive interval.
-
#set_autostop_interval_workspace_deprecated(workspace_id, interval, opts = {}) ⇒ nil
- DEPRECATED
-
Set workspace auto-stop interval.
-
#set_autostop_interval_workspace_deprecated_with_http_info(workspace_id, interval, opts = {}) ⇒ Array<(nil, Integer, Hash)>
- DEPRECATED
-
Set workspace auto-stop interval.
-
#start_workspace_deprecated(workspace_id, opts = {}) ⇒ nil
- DEPRECATED
-
Start workspace.
-
#start_workspace_deprecated_with_http_info(workspace_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
- DEPRECATED
-
Start workspace.
-
#stop_workspace_deprecated(workspace_id, opts = {}) ⇒ nil
- DEPRECATED
-
Stop workspace.
-
#stop_workspace_deprecated_with_http_info(workspace_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
- DEPRECATED
-
Stop workspace.
-
#update_public_status_workspace_deprecated(workspace_id, is_public, opts = {}) ⇒ nil
- DEPRECATED
-
Update public status.
-
#update_public_status_workspace_deprecated_with_http_info(workspace_id, is_public, opts = {}) ⇒ Array<(nil, Integer, Hash)>
- DEPRECATED
-
Update public status.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ WorkspaceApi
19 20 21 |
# File 'lib/daytona_api_client/api/workspace_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_api_client/api/workspace_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#archive_workspace_deprecated(workspace_id, opts = {}) ⇒ nil
- DEPRECATED
-
Archive workspace
27 28 29 30 |
# File 'lib/daytona_api_client/api/workspace_api.rb', line 27 def archive_workspace_deprecated(workspace_id, opts = {}) archive_workspace_deprecated_with_http_info(workspace_id, opts) nil end |
#archive_workspace_deprecated_with_http_info(workspace_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
- DEPRECATED
-
Archive workspace
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 82 |
# File 'lib/daytona_api_client/api/workspace_api.rb', line 37 def archive_workspace_deprecated_with_http_info(workspace_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: WorkspaceApi.archive_workspace_deprecated ...' end # verify the required parameter 'workspace_id' is set if @api_client.config.client_side_validation && workspace_id.nil? fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkspaceApi.archive_workspace_deprecated" end # resource path local_var_path = '/workspace/{workspaceId}/archive'.sub('{' + 'workspaceId' + '}', CGI.escape(workspace_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil? # 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] || ['bearer', 'oauth2'] = opts.merge( :operation => :"WorkspaceApi.archive_workspace_deprecated", :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: WorkspaceApi#archive_workspace_deprecated\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_backup_workspace_deprecated(workspace_id, opts = {}) ⇒ Workspace
- DEPRECATED
-
Create workspace backup
89 90 91 92 |
# File 'lib/daytona_api_client/api/workspace_api.rb', line 89 def create_backup_workspace_deprecated(workspace_id, opts = {}) data, _status_code, _headers = create_backup_workspace_deprecated_with_http_info(workspace_id, opts) data end |
#create_backup_workspace_deprecated_with_http_info(workspace_id, opts = {}) ⇒ Array<(Workspace, Integer, Hash)>
- DEPRECATED
-
Create workspace backup
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 |
# File 'lib/daytona_api_client/api/workspace_api.rb', line 99 def create_backup_workspace_deprecated_with_http_info(workspace_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: WorkspaceApi.create_backup_workspace_deprecated ...' end # verify the required parameter 'workspace_id' is set if @api_client.config.client_side_validation && workspace_id.nil? fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkspaceApi.create_backup_workspace_deprecated" end # resource path local_var_path = '/workspace/{workspaceId}/backup'.sub('{' + 'workspaceId' + '}', CGI.escape(workspace_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'] header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Workspace' # auth_names auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2'] = opts.merge( :operation => :"WorkspaceApi.create_backup_workspace_deprecated", :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: WorkspaceApi#create_backup_workspace_deprecated\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_workspace_deprecated(create_workspace, opts = {}) ⇒ Workspace
- DEPRECATED
-
Create a new workspace
153 154 155 156 |
# File 'lib/daytona_api_client/api/workspace_api.rb', line 153 def create_workspace_deprecated(create_workspace, opts = {}) data, _status_code, _headers = create_workspace_deprecated_with_http_info(create_workspace, opts) data end |
#create_workspace_deprecated_with_http_info(create_workspace, opts = {}) ⇒ Array<(Workspace, Integer, Hash)>
- DEPRECATED
-
Create a new workspace
163 164 165 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_api_client/api/workspace_api.rb', line 163 def create_workspace_deprecated_with_http_info(create_workspace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: WorkspaceApi.create_workspace_deprecated ...' end # verify the required parameter 'create_workspace' is set if @api_client.config.client_side_validation && create_workspace.nil? fail ArgumentError, "Missing the required parameter 'create_workspace' when calling WorkspaceApi.create_workspace_deprecated" end # resource path local_var_path = '/workspace' # 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 header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(create_workspace) # return_type return_type = opts[:debug_return_type] || 'Workspace' # auth_names auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2'] = opts.merge( :operation => :"WorkspaceApi.create_workspace_deprecated", :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: WorkspaceApi#create_workspace_deprecated\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_workspace_deprecated(workspace_id, force, opts = {}) ⇒ nil
- DEPRECATED
-
Delete workspace
223 224 225 226 |
# File 'lib/daytona_api_client/api/workspace_api.rb', line 223 def delete_workspace_deprecated(workspace_id, force, opts = {}) delete_workspace_deprecated_with_http_info(workspace_id, force, opts) nil end |
#delete_workspace_deprecated_with_http_info(workspace_id, force, opts = {}) ⇒ Array<(nil, Integer, Hash)>
- DEPRECATED
-
Delete workspace
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 279 280 281 282 283 284 |
# File 'lib/daytona_api_client/api/workspace_api.rb', line 234 def delete_workspace_deprecated_with_http_info(workspace_id, force, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: WorkspaceApi.delete_workspace_deprecated ...' end # verify the required parameter 'workspace_id' is set if @api_client.config.client_side_validation && workspace_id.nil? fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkspaceApi.delete_workspace_deprecated" end # verify the required parameter 'force' is set if @api_client.config.client_side_validation && force.nil? fail ArgumentError, "Missing the required parameter 'force' when calling WorkspaceApi.delete_workspace_deprecated" end # resource path local_var_path = '/workspace/{workspaceId}'.sub('{' + 'workspaceId' + '}', CGI.escape(workspace_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'force'] = force # header parameters header_params = opts[:header_params] || {} header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil? # 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] || ['bearer', 'oauth2'] = opts.merge( :operation => :"WorkspaceApi.delete_workspace_deprecated", :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: WorkspaceApi#delete_workspace_deprecated\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_build_logs_workspace_deprecated(workspace_id, opts = {}) ⇒ nil
- DEPRECATED
-
Get build logs
292 293 294 295 |
# File 'lib/daytona_api_client/api/workspace_api.rb', line 292 def get_build_logs_workspace_deprecated(workspace_id, opts = {}) get_build_logs_workspace_deprecated_with_http_info(workspace_id, opts) nil end |
#get_build_logs_workspace_deprecated_with_http_info(workspace_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
- DEPRECATED
-
Get build logs
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 340 341 342 343 344 345 346 347 348 349 |
# File 'lib/daytona_api_client/api/workspace_api.rb', line 303 def get_build_logs_workspace_deprecated_with_http_info(workspace_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: WorkspaceApi.get_build_logs_workspace_deprecated ...' end # verify the required parameter 'workspace_id' is set if @api_client.config.client_side_validation && workspace_id.nil? fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkspaceApi.get_build_logs_workspace_deprecated" end # resource path local_var_path = '/workspace/{workspaceId}/build-logs'.sub('{' + 'workspaceId' + '}', CGI.escape(workspace_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] || {} header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil? # 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] || ['bearer', 'oauth2'] = opts.merge( :operation => :"WorkspaceApi.get_build_logs_workspace_deprecated", :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: WorkspaceApi#get_build_logs_workspace_deprecated\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_port_preview_url_workspace_deprecated(workspace_id, port, opts = {}) ⇒ PortPreviewUrl
- DEPRECATED
-
Get preview URL for a workspace port
357 358 359 360 |
# File 'lib/daytona_api_client/api/workspace_api.rb', line 357 def get_port_preview_url_workspace_deprecated(workspace_id, port, opts = {}) data, _status_code, _headers = get_port_preview_url_workspace_deprecated_with_http_info(workspace_id, port, opts) data end |
#get_port_preview_url_workspace_deprecated_with_http_info(workspace_id, port, opts = {}) ⇒ Array<(PortPreviewUrl, Integer, Hash)>
- DEPRECATED
-
Get preview URL for a workspace port
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 408 409 410 411 412 413 414 415 416 417 418 419 |
# File 'lib/daytona_api_client/api/workspace_api.rb', line 368 def get_port_preview_url_workspace_deprecated_with_http_info(workspace_id, port, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: WorkspaceApi.get_port_preview_url_workspace_deprecated ...' end # verify the required parameter 'workspace_id' is set if @api_client.config.client_side_validation && workspace_id.nil? fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkspaceApi.get_port_preview_url_workspace_deprecated" end # verify the required parameter 'port' is set if @api_client.config.client_side_validation && port.nil? fail ArgumentError, "Missing the required parameter 'port' when calling WorkspaceApi.get_port_preview_url_workspace_deprecated" end # resource path local_var_path = '/workspace/{workspaceId}/ports/{port}/preview-url'.sub('{' + 'workspaceId' + '}', CGI.escape(workspace_id.to_s)).sub('{' + 'port' + '}', CGI.escape(port.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'] header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'PortPreviewUrl' # auth_names auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2'] = opts.merge( :operation => :"WorkspaceApi.get_port_preview_url_workspace_deprecated", :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: WorkspaceApi#get_port_preview_url_workspace_deprecated\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_workspace_deprecated(workspace_id, opts = {}) ⇒ Workspace
- DEPRECATED
-
Get workspace details
427 428 429 430 |
# File 'lib/daytona_api_client/api/workspace_api.rb', line 427 def get_workspace_deprecated(workspace_id, opts = {}) data, _status_code, _headers = get_workspace_deprecated_with_http_info(workspace_id, opts) data end |
#get_workspace_deprecated_with_http_info(workspace_id, opts = {}) ⇒ Array<(Workspace, Integer, Hash)>
- DEPRECATED
-
Get workspace details
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 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 |
# File 'lib/daytona_api_client/api/workspace_api.rb', line 438 def get_workspace_deprecated_with_http_info(workspace_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: WorkspaceApi.get_workspace_deprecated ...' end # verify the required parameter 'workspace_id' is set if @api_client.config.client_side_validation && workspace_id.nil? fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkspaceApi.get_workspace_deprecated" end # resource path local_var_path = '/workspace/{workspaceId}'.sub('{' + 'workspaceId' + '}', CGI.escape(workspace_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'verbose'] = opts[:'verbose'] if !opts[:'verbose'].nil? # 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'] header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Workspace' # auth_names auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2'] = opts.merge( :operation => :"WorkspaceApi.get_workspace_deprecated", :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: WorkspaceApi#get_workspace_deprecated\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_workspaces_deprecated(opts = {}) ⇒ Array<Workspace>
- DEPRECATED
-
List all workspaces
494 495 496 497 |
# File 'lib/daytona_api_client/api/workspace_api.rb', line 494 def list_workspaces_deprecated(opts = {}) data, _status_code, _headers = list_workspaces_deprecated_with_http_info(opts) data end |
#list_workspaces_deprecated_with_http_info(opts = {}) ⇒ Array<(Array<Workspace>, Integer, Hash)>
- DEPRECATED
-
List all workspaces
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 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 |
# File 'lib/daytona_api_client/api/workspace_api.rb', line 505 def list_workspaces_deprecated_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: WorkspaceApi.list_workspaces_deprecated ...' end # resource path local_var_path = '/workspace' # query parameters query_params = opts[:query_params] || {} query_params[:'verbose'] = opts[:'verbose'] if !opts[:'verbose'].nil? query_params[:'labels'] = opts[:'labels'] if !opts[:'labels'].nil? # 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'] header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Array<Workspace>' # auth_names auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2'] = opts.merge( :operation => :"WorkspaceApi.list_workspaces_deprecated", :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: WorkspaceApi#list_workspaces_deprecated\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#replace_labels_workspace_deprecated(workspace_id, sandbox_labels, opts = {}) ⇒ SandboxLabels
- DEPRECATED
-
Replace workspace labels
558 559 560 561 |
# File 'lib/daytona_api_client/api/workspace_api.rb', line 558 def replace_labels_workspace_deprecated(workspace_id, sandbox_labels, opts = {}) data, _status_code, _headers = replace_labels_workspace_deprecated_with_http_info(workspace_id, sandbox_labels, opts) data end |
#replace_labels_workspace_deprecated_with_http_info(workspace_id, sandbox_labels, opts = {}) ⇒ Array<(SandboxLabels, Integer, Hash)>
- DEPRECATED
-
Replace workspace labels
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 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 |
# File 'lib/daytona_api_client/api/workspace_api.rb', line 569 def replace_labels_workspace_deprecated_with_http_info(workspace_id, sandbox_labels, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: WorkspaceApi.replace_labels_workspace_deprecated ...' end # verify the required parameter 'workspace_id' is set if @api_client.config.client_side_validation && workspace_id.nil? fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkspaceApi.replace_labels_workspace_deprecated" end # verify the required parameter 'sandbox_labels' is set if @api_client.config.client_side_validation && sandbox_labels.nil? fail ArgumentError, "Missing the required parameter 'sandbox_labels' when calling WorkspaceApi.replace_labels_workspace_deprecated" end # resource path local_var_path = '/workspace/{workspaceId}/labels'.sub('{' + 'workspaceId' + '}', CGI.escape(workspace_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 header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(sandbox_labels) # return_type return_type = opts[:debug_return_type] || 'SandboxLabels' # auth_names auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2'] = opts.merge( :operation => :"WorkspaceApi.replace_labels_workspace_deprecated", :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(:PUT, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: WorkspaceApi#replace_labels_workspace_deprecated\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#set_auto_archive_interval_workspace_deprecated(workspace_id, interval, opts = {}) ⇒ nil
- DEPRECATED
-
Set workspace auto-archive interval
633 634 635 636 |
# File 'lib/daytona_api_client/api/workspace_api.rb', line 633 def set_auto_archive_interval_workspace_deprecated(workspace_id, interval, opts = {}) set_auto_archive_interval_workspace_deprecated_with_http_info(workspace_id, interval, opts) nil end |
#set_auto_archive_interval_workspace_deprecated_with_http_info(workspace_id, interval, opts = {}) ⇒ Array<(nil, Integer, Hash)>
- DEPRECATED
-
Set workspace auto-archive interval
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 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 |
# File 'lib/daytona_api_client/api/workspace_api.rb', line 644 def set_auto_archive_interval_workspace_deprecated_with_http_info(workspace_id, interval, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: WorkspaceApi.set_auto_archive_interval_workspace_deprecated ...' end # verify the required parameter 'workspace_id' is set if @api_client.config.client_side_validation && workspace_id.nil? fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkspaceApi.set_auto_archive_interval_workspace_deprecated" end # verify the required parameter 'interval' is set if @api_client.config.client_side_validation && interval.nil? fail ArgumentError, "Missing the required parameter 'interval' when calling WorkspaceApi.set_auto_archive_interval_workspace_deprecated" end # resource path local_var_path = '/workspace/{workspaceId}/autoarchive/{interval}'.sub('{' + 'workspaceId' + '}', CGI.escape(workspace_id.to_s)).sub('{' + 'interval' + '}', CGI.escape(interval.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil? # 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] || ['bearer', 'oauth2'] = opts.merge( :operation => :"WorkspaceApi.set_auto_archive_interval_workspace_deprecated", :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: WorkspaceApi#set_auto_archive_interval_workspace_deprecated\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#set_autostop_interval_workspace_deprecated(workspace_id, interval, opts = {}) ⇒ nil
- DEPRECATED
-
Set workspace auto-stop interval
701 702 703 704 |
# File 'lib/daytona_api_client/api/workspace_api.rb', line 701 def set_autostop_interval_workspace_deprecated(workspace_id, interval, opts = {}) set_autostop_interval_workspace_deprecated_with_http_info(workspace_id, interval, opts) nil end |
#set_autostop_interval_workspace_deprecated_with_http_info(workspace_id, interval, opts = {}) ⇒ Array<(nil, Integer, Hash)>
- DEPRECATED
-
Set workspace auto-stop interval
712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 |
# File 'lib/daytona_api_client/api/workspace_api.rb', line 712 def set_autostop_interval_workspace_deprecated_with_http_info(workspace_id, interval, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: WorkspaceApi.set_autostop_interval_workspace_deprecated ...' end # verify the required parameter 'workspace_id' is set if @api_client.config.client_side_validation && workspace_id.nil? fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkspaceApi.set_autostop_interval_workspace_deprecated" end # verify the required parameter 'interval' is set if @api_client.config.client_side_validation && interval.nil? fail ArgumentError, "Missing the required parameter 'interval' when calling WorkspaceApi.set_autostop_interval_workspace_deprecated" end # resource path local_var_path = '/workspace/{workspaceId}/autostop/{interval}'.sub('{' + 'workspaceId' + '}', CGI.escape(workspace_id.to_s)).sub('{' + 'interval' + '}', CGI.escape(interval.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil? # 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] || ['bearer', 'oauth2'] = opts.merge( :operation => :"WorkspaceApi.set_autostop_interval_workspace_deprecated", :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: WorkspaceApi#set_autostop_interval_workspace_deprecated\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#start_workspace_deprecated(workspace_id, opts = {}) ⇒ nil
- DEPRECATED
-
Start workspace
768 769 770 771 |
# File 'lib/daytona_api_client/api/workspace_api.rb', line 768 def start_workspace_deprecated(workspace_id, opts = {}) start_workspace_deprecated_with_http_info(workspace_id, opts) nil end |
#start_workspace_deprecated_with_http_info(workspace_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
- DEPRECATED
-
Start workspace
778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 |
# File 'lib/daytona_api_client/api/workspace_api.rb', line 778 def start_workspace_deprecated_with_http_info(workspace_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: WorkspaceApi.start_workspace_deprecated ...' end # verify the required parameter 'workspace_id' is set if @api_client.config.client_side_validation && workspace_id.nil? fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkspaceApi.start_workspace_deprecated" end # resource path local_var_path = '/workspace/{workspaceId}/start'.sub('{' + 'workspaceId' + '}', CGI.escape(workspace_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil? # 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] || ['bearer', 'oauth2'] = opts.merge( :operation => :"WorkspaceApi.start_workspace_deprecated", :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: WorkspaceApi#start_workspace_deprecated\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#stop_workspace_deprecated(workspace_id, opts = {}) ⇒ nil
- DEPRECATED
-
Stop workspace
830 831 832 833 |
# File 'lib/daytona_api_client/api/workspace_api.rb', line 830 def stop_workspace_deprecated(workspace_id, opts = {}) stop_workspace_deprecated_with_http_info(workspace_id, opts) nil end |
#stop_workspace_deprecated_with_http_info(workspace_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
- DEPRECATED
-
Stop workspace
840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 |
# File 'lib/daytona_api_client/api/workspace_api.rb', line 840 def stop_workspace_deprecated_with_http_info(workspace_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: WorkspaceApi.stop_workspace_deprecated ...' end # verify the required parameter 'workspace_id' is set if @api_client.config.client_side_validation && workspace_id.nil? fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkspaceApi.stop_workspace_deprecated" end # resource path local_var_path = '/workspace/{workspaceId}/stop'.sub('{' + 'workspaceId' + '}', CGI.escape(workspace_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil? # 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] || ['bearer', 'oauth2'] = opts.merge( :operation => :"WorkspaceApi.stop_workspace_deprecated", :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: WorkspaceApi#stop_workspace_deprecated\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_public_status_workspace_deprecated(workspace_id, is_public, opts = {}) ⇒ nil
- DEPRECATED
-
Update public status
893 894 895 896 |
# File 'lib/daytona_api_client/api/workspace_api.rb', line 893 def update_public_status_workspace_deprecated(workspace_id, is_public, opts = {}) update_public_status_workspace_deprecated_with_http_info(workspace_id, is_public, opts) nil end |
#update_public_status_workspace_deprecated_with_http_info(workspace_id, is_public, opts = {}) ⇒ Array<(nil, Integer, Hash)>
- DEPRECATED
-
Update public status
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 941 942 943 944 945 946 947 948 949 950 951 952 953 |
# File 'lib/daytona_api_client/api/workspace_api.rb', line 904 def update_public_status_workspace_deprecated_with_http_info(workspace_id, is_public, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: WorkspaceApi.update_public_status_workspace_deprecated ...' end # verify the required parameter 'workspace_id' is set if @api_client.config.client_side_validation && workspace_id.nil? fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkspaceApi.update_public_status_workspace_deprecated" end # verify the required parameter 'is_public' is set if @api_client.config.client_side_validation && is_public.nil? fail ArgumentError, "Missing the required parameter 'is_public' when calling WorkspaceApi.update_public_status_workspace_deprecated" end # resource path local_var_path = '/workspace/{workspaceId}/public/{isPublic}'.sub('{' + 'workspaceId' + '}', CGI.escape(workspace_id.to_s)).sub('{' + 'isPublic' + '}', CGI.escape(is_public.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil? # 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] || ['bearer', 'oauth2'] = opts.merge( :operation => :"WorkspaceApi.update_public_status_workspace_deprecated", :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: WorkspaceApi#update_public_status_workspace_deprecated\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |